Commit ad0199f 1 parent 95f0931 commit ad0199f Copy full SHA for ad0199f
File tree 4 files changed +5
-35
lines changed
4 files changed +5
-35
lines changed Original file line number Diff line number Diff line change 1
1
using System . Collections ;
2
- using System . Collections . Concurrent ;
3
2
using System . ComponentModel ;
4
3
using System . Runtime . CompilerServices ;
5
4
using System . Text ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 170
170
DefaultText='Specifies the duration of the fade-out animation in milliseconds.'}" />
171
171
172
172
<!-- Row 4 ; Column 0-1 -->
173
-
174
173
<Expander
175
174
Grid.Row=" 4"
176
175
Grid.ColumnSpan=" 2"
Original file line number Diff line number Diff line change @@ -94,7 +94,11 @@ private static int Main_Impl(string[] args)
94
94
#else
95
95
Settings = new ( "VolumeControl.json" ) ;
96
96
#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
98
102
Settings . AttachReflectivePropertyChangedHandlers ( ) ;
99
103
100
104
// Multi instance gate
You can’t perform that action at this time.
0 commit comments