Skip to content

Commit

Permalink
add commandline option "--reset-config"
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Nov 12, 2023
1 parent 95f0931 commit ad0199f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
1 change: 0 additions & 1 deletion VolumeControl.Log/AsyncLogWriter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Concurrent;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
Expand Down
32 changes: 0 additions & 32 deletions VolumeControl.Log/DebugUtils.cs

This file was deleted.

1 change: 0 additions & 1 deletion VolumeControl/Mixer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
DefaultText='Specifies the duration of the fade-out animation in milliseconds.'}" />

<!-- Row 4 ; Column 0-1 -->

<Expander
Grid.Row="4"
Grid.ColumnSpan="2"
Expand Down
6 changes: 5 additions & 1 deletion VolumeControl/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ private static int Main_Impl(string[] args)
#else
Settings = new("VolumeControl.json");
#endif
Settings.Load();

if (args.Contains("--reset-config"))
Settings.Save(); //< reset the config by overwriting it with the default settings
else
Settings.Load(); //< load the previous config
Settings.AttachReflectivePropertyChangedHandlers();

// Multi instance gate
Expand Down

0 comments on commit ad0199f

Please sign in to comment.