Skip to content

Commit ad0199f

Browse files
committed
add commandline option "--reset-config"
1 parent 95f0931 commit ad0199f

File tree

4 files changed

+5
-35
lines changed

4 files changed

+5
-35
lines changed

VolumeControl.Log/AsyncLogWriter.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections;
2-
using System.Collections.Concurrent;
32
using System.ComponentModel;
43
using System.Runtime.CompilerServices;
54
using System.Text;

VolumeControl.Log/DebugUtils.cs

-32
This file was deleted.

VolumeControl/Mixer.xaml

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
DefaultText='Specifies the duration of the fade-out animation in milliseconds.'}" />
171171

172172
<!-- Row 4 ; Column 0-1 -->
173-
174173
<Expander
175174
Grid.Row="4"
176175
Grid.ColumnSpan="2"

VolumeControl/Program.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ private static int Main_Impl(string[] args)
9494
#else
9595
Settings = new("VolumeControl.json");
9696
#endif
97-
Settings.Load();
97+
98+
if (args.Contains("--reset-config"))
99+
Settings.Save(); //< reset the config by overwriting it with the default settings
100+
else
101+
Settings.Load(); //< load the previous config
98102
Settings.AttachReflectivePropertyChangedHandlers();
99103

100104
// Multi instance gate

0 commit comments

Comments
 (0)