Skip to content

Commit

Permalink
Removed unnecessary if in favour of direct value usage
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSauce04 committed Oct 29, 2024
1 parent 9ee27d8 commit 41099f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lime_qt/lime_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3684,11 +3684,8 @@ void GMainWindow::SyncMenuUISettings() {
ui->action_Screen_Layout_Upright_Screens->setChecked(
Settings::values.upright_screen.GetValue());

if (Settings::values.layout_option.GetValue() == Settings::LayoutOption::LargeScreen) {
ui->menu_Small_Screen_Position->setEnabled(true);
} else {
ui->menu_Small_Screen_Position->setEnabled(false);
}
ui->menu_Small_Screen_Position->setEnabled(Settings::values.layout_option.GetValue() ==
Settings::LayoutOption::LargeScreen);

ui->action_Small_Screen_TopRight->setChecked(
Settings::values.small_screen_position.GetValue() ==
Expand Down

0 comments on commit 41099f0

Please sign in to comment.