mirror of
https://github.com/DarthAffe/KeyboardAudioVisualizer.git
synced 2025-12-12 15:18:30 +00:00
Fixed error when creating a new configuration
This commit is contained in:
parent
2f9286e39d
commit
f42334aa2b
@ -53,10 +53,10 @@ namespace KeyboardAudioVisualizer
|
||||
|
||||
if (settings == null)
|
||||
{
|
||||
settings = new Settings();
|
||||
settings = new Settings { Version = Settings.CURRENT_VERSION };
|
||||
_taskbarIcon.ShowBalloonTip("Keyboard Audio-Visualizer is starting in the tray!", "Click on the icon to open the configuration.", BalloonIcon.Info);
|
||||
}
|
||||
|
||||
else if (settings.Version != Settings.CURRENT_VERSION)
|
||||
ConfigurationUpdates.PerformOn(settings);
|
||||
|
||||
ApplicationManager.Instance.Settings = settings;
|
||||
|
||||
@ -9,6 +9,12 @@ namespace KeyboardAudioVisualizer.Configuration
|
||||
{
|
||||
public class Settings
|
||||
{
|
||||
#region Constants
|
||||
|
||||
public const int CURRENT_VERSION = 1;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties & Fields
|
||||
|
||||
public int Version { get; set; } = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user