summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-06 20:28:01 +0200
committerLioncash <mathew1800@gmail.com>2018-08-06 20:32:28 +0200
commitcf983888cc781b6ce5550998d6b1c482000a990b (patch)
treecd4b03e1bdca4127787bca03702e3e9c7e373629
parentMerge pull request #933 from lioncash/memory (diff)
downloadyuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar.gz
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar.bz2
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar.lz
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar.xz
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.tar.zst
yuzu-cf983888cc781b6ce5550998d6b1c482000a990b.zip
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index e28679cd1..66e4ed5ba 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -595,12 +595,8 @@ void GMainWindow::UpdateRecentFiles() {
actions_recent_files[j]->setVisible(false);
}
- // Grey out the recent files menu if the list is empty
- if (num_recent_files == 0) {
- ui.menu_recent_files->setEnabled(false);
- } else {
- ui.menu_recent_files->setEnabled(true);
- }
+ // Enable the recent files menu if the list isn't empty
+ ui.menu_recent_files->setEnabled(num_recent_files != 0);
}
void GMainWindow::OnGameListLoadFile(QString game_path) {