Skip to content

Commit

Permalink
Fix "Focus Game after Closing Dashboard" setting missing in the Setti…
Browse files Browse the repository at this point in the history
…ngs window
  • Loading branch information
elvissteinjr committed Aug 4, 2024
1 parent e04b8fd commit 16a2250
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/lang/de.ini
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ tstr_SettingsWindowOverlaysKeepOnScreen=Halte Fenster auf dem Bildschirm
tstr_SettingsWindowOverlaysKeepOnScreenTip=Bewegt das Quellfenster in den Arbeitsbereich des Bildschirms, wenn es außerhalb dessen liegt
tstr_SettingsWindowOverlaysAutoSizeOverlay=Passe Overlaygröße an, wenn die Fenstergröße sich ändert
tstr_SettingsWindowOverlaysFocusSceneApp=Fokussiere Spiel, wenn der Laserpointer das Overlay verlässt
tstr_SettingsWindowOverlaysFocusSceneAppDashboard=Fokussiere Spiel, nachdem das Dashboard geschlossen wurde
tstr_SettingsWindowOverlaysOnWindowDrag=Bei Fenster-Verschiebung
tstr_SettingsWindowOverlaysOnWindowDragDoNothing=Nichts tun
tstr_SettingsWindowOverlaysOnWindowDragBlock=Blockiere Verschiebung
Expand Down
1 change: 1 addition & 0 deletions assets/lang/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ tstr_SettingsWindowOverlaysKeepOnScreen=Keep Window on Screen
tstr_SettingsWindowOverlaysKeepOnScreenTip=Automatically move source window inside the screen's work area if its bounds lie outside of it
tstr_SettingsWindowOverlaysAutoSizeOverlay=Adjust Overlay Size when Window Resizes
tstr_SettingsWindowOverlaysFocusSceneApp=Focus Game when Laser Pointer leaves Overlay
tstr_SettingsWindowOverlaysFocusSceneAppDashboard=Focus Game after Closing Dashboard
tstr_SettingsWindowOverlaysOnWindowDrag=On Window Drag
tstr_SettingsWindowOverlaysOnWindowDragDoNothing=Do Nothing
tstr_SettingsWindowOverlaysOnWindowDragBlock=Block Drag
Expand Down
1 change: 1 addition & 0 deletions src/DesktopPlusUI/TranslationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const char* TranslationManager::s_StringIDNames[tstr_MAX] =
"tstr_SettingsWindowOverlaysKeepOnScreenTip",
"tstr_SettingsWindowOverlaysAutoSizeOverlay",
"tstr_SettingsWindowOverlaysFocusSceneApp",
"tstr_SettingsWindowOverlaysFocusSceneAppDashboard",
"tstr_SettingsWindowOverlaysOnWindowDrag",
"tstr_SettingsWindowOverlaysOnWindowDragDoNothing",
"tstr_SettingsWindowOverlaysOnWindowDragBlock",
Expand Down
1 change: 1 addition & 0 deletions src/DesktopPlusUI/TranslationManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ enum TRMGRStrID
tstr_SettingsWindowOverlaysKeepOnScreenTip,
tstr_SettingsWindowOverlaysAutoSizeOverlay,
tstr_SettingsWindowOverlaysFocusSceneApp,
tstr_SettingsWindowOverlaysFocusSceneAppDashboard,
tstr_SettingsWindowOverlaysOnWindowDrag,
tstr_SettingsWindowOverlaysOnWindowDragDoNothing,
tstr_SettingsWindowOverlaysOnWindowDragBlock,
Expand Down
9 changes: 9 additions & 0 deletions src/DesktopPlusUI/WindowSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,15 @@ void WindowSettings::UpdatePageMainCatWindows()
IPCManager::Get().PostConfigMessageToDashboardApp(configid_bool_windows_winrt_auto_focus_scene_app, focus_scene_app);
}

if (ConfigManager::GetValue(configid_bool_interface_show_advanced_settings))
{
bool& auto_focus_scene_app_dashboard = ConfigManager::GetRef(configid_bool_windows_auto_focus_scene_app_dashboard);
if (ImGui::Checkbox(TranslationManager::GetString(tstr_SettingsWindowOverlaysFocusSceneAppDashboard), &auto_focus_scene_app_dashboard))
{
IPCManager::Get().PostConfigMessageToDashboardApp(configid_bool_windows_auto_focus_scene_app_dashboard, auto_focus_scene_app_dashboard);
}
}

ImGui::Unindent();

if (ConfigManager::GetValue(configid_bool_interface_show_advanced_settings))
Expand Down

0 comments on commit 16a2250

Please sign in to comment.