Skip to content

Commit

Permalink
Fix switching to packages when trying to change overlay priority
Browse files Browse the repository at this point in the history
Resolves #99
  • Loading branch information
IrneRacoonovich authored and i3sey committed Aug 31, 2024
1 parent 5746aa8 commit d7efc30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1764,13 +1764,15 @@ class MainMenu : public tsl::Gui {
if (settingsData.count("uberhand") > 0) {
auto& uberhandSection = settingsData["uberhand"];
if (uberhandSection.count("last_menu") > 0) {
menuMode = uberhandSection["last_menu"];
if (uberhandSection.count("default_menu") > 0) {
defaultMenuMode = uberhandSection["default_menu"];
if (uberhandSection.count("in_overlay") > 0) {
settingsLoaded = true;
}
}
if (defaultMenuMode == "last_menu") {
menuMode = uberhandSection["last_menu"];
}
}
if (uberhandSection["show_ovl_versions"] == "true") {
showOverlayVersions = true;
Expand Down

0 comments on commit d7efc30

Please sign in to comment.