Skip to content

Commit 71755e2

Browse files
committed
Fix legacy config migration not defaulting to showing Action Bar for the first dashboard overlay
1 parent 360a73a commit 71755e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Shared/ConfigManager.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,12 @@ void ConfigManager::MigrateLegacyOverlayProfileFromConfig(Ini& config, bool appl
992992
config.WriteString(section.c_str(), "Tags", tag_str.c_str());
993993
}
994994

995+
//0-Dashboard overlay had no Floating UI, always only showing the Action Bar, but didn't make use of the property value which defaulted and stayed false, so force it to true
996+
if (overlay_id == 0)
997+
{
998+
config.WriteBool(section.c_str(), "ShowActionBar", true);
999+
}
1000+
9951001
//Write Display Mode to new config string (0 is always Desktop+ tab)
9961002
config.WriteInt(section.c_str(), "DisplayMode", (overlay_id == 0) ? ovrl_dispmode_dplustab : config.ReadInt(section.c_str(), "DetachedDisplayMode", ovrl_dispmode_always) );
9971003

0 commit comments

Comments
 (0)