// Load settings and apply them to the checkboxes
 private void InitSettings()
 {
     CheckBox_Minimize.IsChecked           = MainModel.LoadSetting(MainModel.Setting.Minimize);
     CheckBox_Tray.IsChecked               = MainModel.LoadSetting(MainModel.Setting.Tray);
     CheckBox_DebugNotifications.IsChecked = MainModel.LoadSetting(MainModel.Setting.Notification);
     CheckBox_HapticFeedback.IsChecked     = MainModel.LoadSetting(MainModel.Setting.Haptic);
     Label_Version.Content = MainModel.GetVersion();
 }
Beispiel #2
0
        // Load settings and apply them to the checkboxes
        private void InitSettings()
        {
            CheckBox_Minimize.IsChecked           = MainModel.LoadSetting(MainModel.Setting.Minimize);
            CheckBox_Tray.IsChecked               = MainModel.LoadSetting(MainModel.Setting.Tray);
            CheckBox_ExitWithSteamVR.IsChecked    = MainModel.LoadSetting(MainModel.Setting.ExitWithSteam);
            CheckBox_DebugNotifications.IsChecked = MainModel.LoadSetting(MainModel.Setting.Notification);
            CheckBox_HapticFeedback.IsChecked     = MainModel.LoadSetting(MainModel.Setting.Haptic);
#if DEBUG
            Label_Version.Content = $"{MainModel.GetVersion()}d";
#else
            Label_Version.Content = MainModel.GetVersion();
#endif
        }