File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
OneMore/Commands/Tools/Updater Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public async Task<bool> FetchLatestRelease()
173173 IsUpToDate = currentVersion >= releaseVersion ;
174174
175175 // check if this version is skipped...
176- var collection = new Settings . SettingsProvider ( ) . GetCollection ( "General" ) ;
176+ var collection = new Settings . SettingsProvider ( ) . GetCollection ( nameof ( Settings . GeneralSheet ) ) ;
177177 if ( collection . Get < string > ( "SkippedUpdateVersion" ) == release . tag_name )
178178 {
179179 IsSkippedRelease = true ;
@@ -192,7 +192,7 @@ public async Task<bool> FetchLatestRelease()
192192 public void SkipRelease ( )
193193 {
194194 var provider = new Settings . SettingsProvider ( ) ;
195- var collection = provider . GetCollection ( "General" ) ;
195+ var collection = provider . GetCollection ( nameof ( Settings . GeneralSheet ) ) ;
196196 collection . Add ( "SkippedUpdateVersion" , UpdateVersion ) ;
197197 provider . SetCollection ( collection ) ;
198198 provider . Save ( ) ;
@@ -281,7 +281,7 @@ public async Task<bool> Update()
281281
282282 // reset skipped version
283283 var provider = new Settings . SettingsProvider ( ) ;
284- var collection = provider . GetCollection ( "General" ) ;
284+ var collection = provider . GetCollection ( nameof ( Settings . GeneralSheet ) ) ;
285285 collection . Remove ( "SkippedUpdateVersion" ) ;
286286 provider . SetCollection ( collection ) ;
287287 provider . Save ( ) ;
You can’t perform that action at this time.
0 commit comments