Skip to content

Commit

Permalink
zoom settings will automatically update the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaxed committed Oct 27, 2023
1 parent 71dca60 commit 742574c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/ui/GenioWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,6 @@ GenioWindow::MessageReceived(BMessage* message)
if (zoom < 20) {
zoom++;
gCFG["editor_zoom"] = zoom;
for (int32 index = 0; index < fTabManager->CountTabs(); index++) {
Editor* editor = fTabManager->EditorAt(index);
editor->SetZoom(zoom);
}
}
break;
}
Expand All @@ -635,19 +631,11 @@ GenioWindow::MessageReceived(BMessage* message)
if (zoom > -10) {
zoom--;
gCFG["editor_zoom"] = zoom;
for (int32 index = 0; index < fTabManager->CountTabs(); index++) {
Editor* editor = fTabManager->EditorAt(index);
editor->SetZoom(zoom);
}
}
break;
}
case MSG_VIEW_ZOOMRESET:
gCFG["editor_zoom"] = 0;
for (int32 index = 0; index < fTabManager->CountTabs(); index++) {
Editor* editor = fTabManager->EditorAt(index);
editor->SetZoom(gCFG["editor_zoom"]);
}
break;
case MSG_FIND_GROUP_SHOW:
_FindGroupShow(true);
Expand Down

0 comments on commit 742574c

Please sign in to comment.