You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LiveWriterPluginManager/ViewModel/MainViewModel.cs
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
usingSystem.Windows;
1
+
usingSystem.Threading.Tasks;
2
+
usingSystem.Windows;
2
3
usingGalaSoft.MvvmLight;
3
4
usingGalaSoft.MvvmLight.Command;
4
5
usingLiveWriterPluginManager.Helpers;
@@ -18,18 +19,20 @@ public RelayCommand LoadedCommand
18
19
{
19
20
get
20
21
{
21
-
returnnewRelayCommand(()=>
22
+
returnnewRelayCommand(async()=>
22
23
{
23
24
if(!AppHelper.LiveWriterInstalled)
24
25
{
25
-
_messageService.ShowErrorAsync("It doesn't look like you have Live Writer installed, please go to http://openlivewriter.org to download and install it.");
26
+
await_messageService.ShowErrorAsync("It doesn't look like you have Live Writer installed, please go to http://openlivewriter.org to download and install it.");
26
27
Application.Current.Shutdown();
27
28
return;
28
29
}
29
30
31
+
awaitTask.Delay(500);
32
+
30
33
if(!AppHelper.IsRunningAsAdmin())
31
34
{
32
-
_messageService.ShowErrorAsync("In order for this app to add/remove plugins, it needs to run as Administrator, please restart the app with higher privileges");
35
+
await_messageService.ShowErrorAsync("In order for this app to add/remove plugins, it needs to run as Administrator, please restart the app with higher privileges");
0 commit comments