Skip to content

Commit e9c40e4

Browse files
committed
Revert "Add new restart api"
This reverts commit 7611b00.
1 parent 1073061 commit e9c40e4

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ public interface IPublicAPI
3333
/// </summary>
3434
void RestartApp();
3535

36-
/// <summary>
37-
/// Restart Flow Launcher with arguments
38-
/// </summary>
39-
/// <param name="arguments">Application start arguments</param>
40-
void RestartApp(string arguments);
41-
4236
/// <summary>
4337
/// Run a shell command
4438
/// </summary>

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Threading;
1212
using System.Threading.Tasks;
1313
using System.Windows;
14+
using System.Windows.Input;
1415
using System.Windows.Media;
1516
using CommunityToolkit.Mvvm.DependencyInjection;
1617
using Flow.Launcher.Core;
@@ -72,10 +73,8 @@ public void ChangeQuery(string query, bool requery = false)
7273
_mainVM.ChangeQueryText(query, requery);
7374
}
7475

75-
public void RestartApp() => RestartApp(null);
76-
7776
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD100:Avoid async void methods", Justification = "<Pending>")]
78-
public async void RestartApp(string arguments)
77+
public async void RestartApp()
7978
{
8079
_mainVM.Hide();
8180

@@ -90,7 +89,7 @@ public async void RestartApp(string arguments)
9089
// Restart requires Squirrel's Update.exe to be present in the parent folder,
9190
// it is only published from the project's release pipeline. When debugging without it,
9291
// the project may not restart or just terminates. This is expected.
93-
UpdateManager.RestartApp(Constant.ApplicationFileName, arguments);
92+
UpdateManager.RestartApp(Constant.ApplicationFileName);
9493
}
9594

9695
public void ShowMainWindow() => _mainVM.Show();

0 commit comments

Comments
 (0)