refactor template class LatchedValue use
make m_sGameFile LatchedValue fix odd prompt to restart after game change via global preferences dialog + OK in local preferences sort games list alphabetically by .game file name
This commit is contained in:
@@ -36,7 +36,7 @@ void MultiMonitor_constructPreferences( PreferencesPage& page ){
|
||||
page.appendCheckBox( "Multi Monitor", "Start on Primary Monitor", g_multimon_globals.m_bStartOnPrimMon );
|
||||
// GtkWidget* popup = page.appendCheckBox(
|
||||
// "", "Disable system menu on popup windows",
|
||||
// LatchedBoolImportCaller( g_Multimon_enableSysMenuPopups ),
|
||||
// LatchedImportCaller( g_Multimon_enableSysMenuPopups ),
|
||||
// BoolExportCaller( g_Multimon_enableSysMenuPopups.m_latched )
|
||||
// );
|
||||
// Widget_connectToggleDependency( popup, primary_monitor );
|
||||
@@ -89,9 +89,7 @@ void MultiMon_Construct(){
|
||||
}
|
||||
|
||||
GlobalPreferenceSystem().registerPreference( "StartOnPrimMon", BoolImportStringCaller( g_multimon_globals.m_bStartOnPrimMon ), BoolExportStringCaller( g_multimon_globals.m_bStartOnPrimMon ) );
|
||||
// GlobalPreferenceSystem().registerPreference( "NoSysMenuPopups", BoolImportStringCaller( g_Multimon_enableSysMenuPopups.m_latched ), BoolExportStringCaller( g_Multimon_enableSysMenuPopups.m_latched ) );
|
||||
|
||||
// g_Multimon_enableSysMenuPopups.useLatched();
|
||||
// GlobalPreferenceSystem().registerPreference( "NoSysMenuPopups", makeBoolStringImportCallback( LatchedAssignCaller( g_Multimon_enableSysMenuPopups ) ), BoolExportStringCaller( g_Multimon_enableSysMenuPopups.m_latched ) );
|
||||
|
||||
PreferencesDialog_addInterfacePreferences( FreeCaller1<PreferencesPage&, MultiMonitor_constructPreferences>() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user