Skip to content

Commit de26abe

Browse files
committed
Use api functions instead
1 parent b2edea4 commit de26abe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void DisablePortableMode()
4848
API.ShowMsgBox("Flow Launcher needs to restart to finish disabling portable mode, " +
4949
"after the restart your portable data profile will be deleted and roaming data profile kept");
5050

51-
UpdateManager.RestartApp(Constant.ApplicationFileName);
51+
API.RestartApp();
5252
}
5353
catch (Exception e)
5454
{
@@ -72,7 +72,7 @@ public void EnablePortableMode()
7272
API.ShowMsgBox("Flow Launcher needs to restart to finish enabling portable mode, " +
7373
"after the restart your roaming data profile will be deleted and portable data profile kept");
7474

75-
UpdateManager.RestartApp(Constant.ApplicationFileName);
75+
API.RestartApp();
7676
}
7777
catch (Exception e)
7878
{

Flow.Launcher.Core/Updater.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Linq;
34
using System.Net;
45
using System.Net.Http;
56
using System.Net.Sockets;
6-
using System.Linq;
77
using System.Text.Json;
88
using System.Text.Json.Serialization;
99
using System.Threading;
1010
using System.Threading.Tasks;
1111
using System.Windows;
12-
using Flow.Launcher.Plugin.SharedCommands;
1312
using Flow.Launcher.Infrastructure;
1413
using Flow.Launcher.Infrastructure.Http;
1514
using Flow.Launcher.Infrastructure.UserSettings;
1615
using Flow.Launcher.Plugin;
16+
using Flow.Launcher.Plugin.SharedCommands;
1717
using JetBrains.Annotations;
1818
using Squirrel;
1919

@@ -89,7 +89,7 @@ public async Task UpdateAppAsync(bool silentUpdate = true)
8989

9090
if (_api.ShowMsgBox(newVersionTips, _api.GetTranslation("update_flowlauncher_new_update"), MessageBoxButton.YesNo) == MessageBoxResult.Yes)
9191
{
92-
UpdateManager.RestartApp(Constant.ApplicationFileName);
92+
_api.RestartApp();
9393
}
9494
}
9595
catch (Exception e)

0 commit comments

Comments
 (0)