File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,17 @@ public static void IndexWin32Programs()
110
110
var win32S = Win32 . All ( _settings ) ;
111
111
_win32s = win32S ;
112
112
ResetCache ( ) ;
113
+ _win32Storage . Save ( _win32s ) ;
114
+ _settings . LastIndexTime = DateTime . Now ;
113
115
}
114
116
115
117
public static void IndexUwpPrograms ( )
116
118
{
117
119
var applications = UWP . All ( _settings ) ;
118
120
_uwps = applications ;
119
121
ResetCache ( ) ;
122
+ _uwpStorage . Save ( _uwps ) ;
123
+ _settings . LastIndexTime = DateTime . Now ;
120
124
}
121
125
122
126
public static async Task IndexProgramsAsync ( )
@@ -131,7 +135,6 @@ public static async Task IndexProgramsAsync()
131
135
Stopwatch . Normal ( "|Flow.Launcher.Plugin.Program.Main|UWPProgram index cost" , IndexUwpPrograms ) ;
132
136
} ) ;
133
137
await Task . WhenAll ( a , b ) . ConfigureAwait ( false ) ;
134
- _settings . LastIndexTime = DateTime . Today ;
135
138
}
136
139
137
140
internal static void ResetCache ( )
@@ -199,7 +202,6 @@ private static void DisableProgram(IProgram programToDelete)
199
202
_ = Task . Run ( ( ) =>
200
203
{
201
204
IndexUwpPrograms ( ) ;
202
- _settings . LastIndexTime = DateTime . Today ;
203
205
} ) ;
204
206
}
205
207
else if ( _win32s . Any ( x => x . UniqueIdentifier == programToDelete . UniqueIdentifier ) )
@@ -210,7 +212,6 @@ private static void DisableProgram(IProgram programToDelete)
210
212
_ = Task . Run ( ( ) =>
211
213
{
212
214
IndexWin32Programs ( ) ;
213
- _settings . LastIndexTime = DateTime . Today ;
214
215
} ) ;
215
216
}
216
217
}
You can’t perform that action at this time.
0 commit comments