summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-07-17 12:14:13 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-07-29 12:50:30 +0200
commitf78e44762a109c9dac0e41735aa8af8616cbadfa (patch)
tree970f0fef8e1ff7be189ae0475e11042dac428c01
parentmain: Split removal cases into their individual functions and address feedback (diff)
downloadyuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar.gz
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar.bz2
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar.lz
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar.xz
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.tar.zst
yuzu-f78e44762a109c9dac0e41735aa8af8616cbadfa.zip
-rw-r--r--src/yuzu/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 49c10459b..eeca0acb2 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1421,11 +1421,10 @@ void GMainWindow::OnGameListRemoveInstalledEntry(u64 program_id, InstalledEntryT
[[fallthrough]];
case InstalledEntryType::Update:
RemoveUpdateContent(program_id, entry_type);
- if (type == InstalledEntryType::Game) {
- [[fallthrough]];
- } else {
+ if (type != InstalledEntryType::Game) {
break;
}
+ [[fallthrough]];
case InstalledEntryType::AddOnContent:
RemoveAddOnContent(program_id, entry_type);
break;