Skip to content

Commit eb26329

Browse files
authored
Merge pull request #24 from JohnTheGr8/fix_plugin_typo
fix typo in IPublicAPI
2 parents f53740a + 9ac9a2f commit eb26329

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

Flow.Launcher.Core/Plugin/PluginInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ internal static void Install(string path)
8686
"Restart Flow Launcher to take effect?",
8787
"Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
8888
{
89-
PluginManager.API.RestarApp();
89+
PluginManager.API.RestartApp();
9090
}
9191
}
9292
}

Flow.Launcher.Plugin/IPublicAPI.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public interface IPublicAPI
4343
/// <summary>
4444
/// Restart Flow Launcher
4545
/// </summary>
46+
void RestartApp();
47+
48+
/// <summary>
49+
/// Restart Flow Launcher
50+
/// </summary>
51+
[Obsolete("Use RestartApp instead. This method will be removed in Flow Launcher 1.3")]
4652
void RestarApp();
4753

4854
/// <summary>

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void CloseApp()
5454
Application.Current.MainWindow.Close();
5555
}
5656

57-
public void RestarApp()
57+
public void RestartApp()
5858
{
5959
_mainVM.MainWindowVisibility = Visibility.Hidden;
6060

@@ -66,6 +66,11 @@ public void RestarApp()
6666
UpdateManager.RestartApp(Constant.ApplicationFileName);
6767
}
6868

69+
public void RestarApp()
70+
{
71+
RestartApp();
72+
}
73+
6974
public void CheckForNewUpdate()
7075
{
7176
_settingsVM.UpdateApp();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private void UnInstallPlugin(PluginMetadata plugin)
220220
"Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question);
221221
if (result == MessageBoxResult.Yes)
222222
{
223-
context.API.RestarApp();
223+
context.API.RestartApp();
224224
}
225225
}
226226
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private List<Result> Commands()
205205
IcoPath = "Images\\app.png",
206206
Action = c =>
207207
{
208-
context.API.RestarApp();
208+
context.API.RestartApp();
209209
return false;
210210
}
211211
},

0 commit comments

Comments
 (0)