mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-09 15:09:07 +01:00
qt/main: Collapse if statement in UpdateRecentFiles()
Given the function accepts a boolean, we don't need to use an if statement here and repeat ourselves.
This commit is contained in:
parent
1ac45342dd
commit
cf983888cc
1 changed files with 2 additions and 6 deletions
|
@ -595,12 +595,8 @@ void GMainWindow::UpdateRecentFiles() {
|
||||||
actions_recent_files[j]->setVisible(false);
|
actions_recent_files[j]->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grey out the recent files menu if the list is empty
|
// Enable the recent files menu if the list isn't empty
|
||||||
if (num_recent_files == 0) {
|
ui.menu_recent_files->setEnabled(num_recent_files != 0);
|
||||||
ui.menu_recent_files->setEnabled(false);
|
|
||||||
} else {
|
|
||||||
ui.menu_recent_files->setEnabled(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnGameListLoadFile(QString game_path) {
|
void GMainWindow::OnGameListLoadFile(QString game_path) {
|
||||||
|
|
Loading…
Reference in a new issue