public void ProcessSettings(bool initialize = false)
 {
     if (initialize)
     {
         VolumeBar.Value = App.Config.Volume;
         ChangeTabs(App.Config.CurrentMenu);
     }
     if (App.Config.PlaybackTracking)
     {
         TrackingHandler = new PlaytimeTrackingHandler(this);
     }
     else if (TrackingHandler != null)
     {
         TrackingHandler?.Close();
         TrackingHandler = null;
     }
 }
 private void Window_Closed(object sender, EventArgs e)
 {
     App.Config.Volume      = (int)VolumeBar.Value;
     App.Config.CurrentMenu = CurrentTab;
     TrackingHandler?.Close();
     ConfigurationHandler.Write(App.Config);
     Library.Database?.Dispose();
     ProgressTimer.Dispose();
     watcher.Dispose();
     WritePersistence();
 }