Skip to content

Commit d7ca36e

Browse files
committed
Change variable name
1 parent 653b833 commit d7ca36e

File tree

1 file changed

+6
-6
lines changed
  • Plugins/Flow.Launcher.Plugin.Program

1 file changed

+6
-6
lines changed

Plugins/Flow.Launcher.Plugin.Program/Main.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public async Task InitAsync(PluginInitContext context)
190190
var _uwpsCount = 0;
191191
await Stopwatch.NormalAsync("|Flow.Launcher.Plugin.Program.Main|Preload programs cost", async () =>
192192
{
193-
var pluginCachePath = Context.CurrentPluginMetadata.PluginCacheDirectoryPath;
194-
FilesFolders.ValidateDirectory(pluginCachePath);
193+
var pluginCacheDirectory = Context.CurrentPluginMetadata.PluginCacheDirectoryPath;
194+
FilesFolders.ValidateDirectory(pluginCacheDirectory);
195195

196196
static void MoveFile(string sourcePath, string destinationPath)
197197
{
@@ -237,19 +237,19 @@ static void MoveFile(string sourcePath, string destinationPath)
237237

238238
// Move old cache files to the new cache directory
239239
var oldWin32CacheFile = Path.Combine(DataLocation.CacheDirectory, $"{Win32CacheName}.cache");
240-
var newWin32CacheFile = Path.Combine(pluginCachePath, $"{Win32CacheName}.cache");
240+
var newWin32CacheFile = Path.Combine(pluginCacheDirectory, $"{Win32CacheName}.cache");
241241
MoveFile(oldWin32CacheFile, newWin32CacheFile);
242242
var oldUWPCacheFile = Path.Combine(DataLocation.CacheDirectory, $"{UwpCacheName}.cache");
243-
var newUWPCacheFile = Path.Combine(pluginCachePath, $"{UwpCacheName}.cache");
243+
var newUWPCacheFile = Path.Combine(pluginCacheDirectory, $"{UwpCacheName}.cache");
244244
MoveFile(oldUWPCacheFile, newUWPCacheFile);
245245

246246
await _win32sLock.WaitAsync();
247-
_win32s = await context.API.LoadCacheBinaryStorageAsync(Win32CacheName, pluginCachePath, new List<Win32>());
247+
_win32s = await context.API.LoadCacheBinaryStorageAsync(Win32CacheName, pluginCacheDirectory, new List<Win32>());
248248
_win32sCount = _win32s.Count;
249249
_win32sLock.Release();
250250

251251
await _uwpsLock.WaitAsync();
252-
_uwps = await context.API.LoadCacheBinaryStorageAsync(UwpCacheName, pluginCachePath, new List<UWPApp>());
252+
_uwps = await context.API.LoadCacheBinaryStorageAsync(UwpCacheName, pluginCacheDirectory, new List<UWPApp>());
253253
_uwpsCount = _uwps.Count;
254254
_uwpsLock.Release();
255255
});

0 commit comments

Comments
 (0)