// Systemwide logic

        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;
            }

            var version = Assembly.GetEntryAssembly().GetName().Version.ToString();

            if (version != App.Config.LastRecordedVersion && App.Config.LastRecordedVersion != null)
            {
                NotificationHandler.Add(new Notification
                {
                    ContentText     = string.Format(Properties.Resources.NOTIFICATION_UPTODATE, version),
                    ButtonText      = Properties.Resources.NOTIFICATION_UPTODATE_CHANGELOG,
                    Type            = NotificationType.Success,
                    OnButtonClicked = () => { Process.Start("https://github.com/royce551/freshmusicplayer/releases/latest"); return(true); }
                });
            }

            App.Config.LastRecordedVersion = version;
        }
 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;
     }
 }