Skip to content

Commit 000bafd

Browse files
committed
use camelCase and make last update time variable private
1 parent b106688 commit 000bafd

File tree

1 file changed

+4
-4
lines changed
  • Plugins/Flow.Launcher.Plugin.PluginsManager

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Main : ISettingProvider, IPlugin, ISavable, IContextMenu, IPluginI1
2222

2323
internal PluginsManager pluginManager;
2424

25-
internal DateTime _lastUpdateTime;
25+
private DateTime lastUpdateTime;
2626

2727
public Control CreateSettingPanel()
2828
{
@@ -36,7 +36,7 @@ public void Init(PluginInitContext context)
3636
Settings = viewModel.Settings;
3737
contextMenu = new ContextMenu(Context);
3838
pluginManager = new PluginsManager(Context, Settings);
39-
_lastUpdateTime = DateTime.Now;
39+
lastUpdateTime = DateTime.Now;
4040
}
4141

4242
public List<Result> LoadContextMenus(Result selectedResult)
@@ -51,12 +51,12 @@ public List<Result> Query(Query query)
5151
if (string.IsNullOrWhiteSpace(search))
5252
return pluginManager.GetDefaultHotKeys();
5353

54-
if ((DateTime.Now - _lastUpdateTime).TotalHours > 12) // 12 hours
54+
if ((DateTime.Now - lastUpdateTime).TotalHours > 12) // 12 hours
5555
{
5656
Task.Run(async () =>
5757
{
5858
await pluginManager.UpdateManifest();
59-
_lastUpdateTime = DateTime.Now;
59+
lastUpdateTime = DateTime.Now;
6060
});
6161
}
6262

0 commit comments

Comments
 (0)