Skip to content

Commit

Permalink
extra fix old ftp plugin (touch #2443)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmz committed Oct 19, 2024
1 parent 3c20e10 commit a464fb8
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions far2l/src/filepanels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,27 +237,25 @@ void FilePanels::UpdateCmdLineVisibility(bool repos)
new_cl_x2 = left_x2 - 1;
}
}
if (new_cl_x1 != cl_x1 || new_cl_x2 != cl_x2 || new_cl_y != cl_y) {
repos = true;
}
bool cl_repos = (new_cl_x1 != cl_x1 || new_cl_x2 != cl_x2 || new_cl_y != cl_y);
if (cl_visible != new_cl_visible) {
CtrlObject->CmdLine->SetVisible(new_cl_visible);
}
if (repos) {
if (cl_repos || repos) {
CtrlObject->CmdLine->SetPosition(new_cl_x1, new_cl_y, new_cl_x2, new_cl_y);
}
if (cl_visible != new_cl_visible || repos) {
if (cl_visible != new_cl_visible || cl_repos || repos) {
if (new_cl_visible) {
CtrlObject->CmdLine->Redraw();
}
/* Don't remember why it was added, but it causes infinite recursion with old FTP plugin (#2443)
if (LeftPanel->IsVisible()) {
LeftPanel->Redraw();
}
if (RightPanel->IsVisible()) {
RightPanel->Redraw();
if (cl_visible != new_cl_visible || cl_repos) {
if (LeftPanel->IsVisible()) {
LeftPanel->Redraw();
}
if (RightPanel->IsVisible()) {
RightPanel->Redraw();
}
}
*/
}
}

Expand Down

0 comments on commit a464fb8

Please sign in to comment.