@@ -252,8 +252,6 @@ internal void LoadProperties()
252252
253253 try
254254 {
255- MniDisableInactive . IsChecked = Properties . Settings . Default . DisableOnInactive ;
256- MniOnTop . IsChecked = Properties . Settings . Default . Topmost ;
257255 MniWindowDraggable . IsChecked = Properties . Settings . Default . WindowDragging ;
258256 MniRamStatistics . IsChecked = Properties . Settings . Default . WindowRamStatistics ;
259257 MniRamGauge . IsChecked = Properties . Settings . Default . DisplayGauge ;
@@ -616,26 +614,6 @@ private void ErrorLogsMenuItem_OnClick(object sender, RoutedEventArgs e)
616614 new LogWindow ( _logController , LogType . Error ) . Show ( ) ;
617615 }
618616
619- /// <summary>
620- /// Method that is called when the Topmost property should be changed
621- /// </summary>
622- /// <param name="sender">The object that called this method</param>
623- /// <param name="e">The RoutedEventArgs</param>
624- private void TopMenuItem_OnCheckedChanged ( object sender , RoutedEventArgs e )
625- {
626- try
627- {
628- Topmost = MniOnTop . IsChecked ;
629- Properties . Settings . Default . Topmost = Topmost ;
630- Properties . Settings . Default . Save ( ) ;
631- }
632- catch ( Exception ex )
633- {
634- _logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
635- MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
636- }
637- }
638-
639617 /// <summary>
640618 /// Method that is called when the CodeDead homepage should be displayed
641619 /// </summary>
@@ -781,25 +759,6 @@ private void OpenTbItem_Click(object sender, RoutedEventArgs e)
781759 }
782760 }
783761
784- /// <summary>
785- /// Method that is called when the RAM Monitor should be disabled or not when the Application is inactive
786- /// </summary>
787- /// <param name="sender">The object that called this method</param>
788- /// <param name="e">The RoutedEventArgs</param>
789- private void DisableInactiveMenuItem_OnCheckedChanged ( object sender , RoutedEventArgs e )
790- {
791- try
792- {
793- Properties . Settings . Default . DisableOnInactive = MniDisableInactive . IsChecked ;
794- Properties . Settings . Default . Save ( ) ;
795- }
796- catch ( Exception ex )
797- {
798- _logController . AddLog ( new ErrorLog ( ex . Message ) ) ;
799- MessageBox . Show ( ex . Message , "MemPlus" , MessageBoxButton . OK , MessageBoxImage . Error ) ;
800- }
801- }
802-
803762 /// <summary>
804763 /// Method that is called when the Window draggable setting should be changed
805764 /// </summary>
@@ -1092,6 +1051,8 @@ private void MainWindow_OnClosing(object sender, CancelEventArgs e)
10921051 }
10931052 else
10941053 {
1054+ // Save properties
1055+ Properties . Settings . Default . Save ( ) ;
10951056 // De-register any hotkeys, if applicable
10961057 _hotKeyController ? . Dispose ( ) ;
10971058 // Disable the RAM Monitor to prevent exceptions from being thrown
0 commit comments