@@ -74,7 +74,6 @@ public void ChangeQuery(string query, bool requery = false)
74
74
_mainVM . ChangeQueryText ( query , requery ) ;
75
75
}
76
76
77
- [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Usage" , "VSTHRD100:Avoid async void methods" , Justification = "<Pending>" ) ]
78
77
public void RestartApp ( )
79
78
{
80
79
_mainVM . Hide ( ) ;
@@ -179,7 +178,7 @@ public async void CopyToClipboard(string stringToCopy, bool directCopy = false,
179
178
180
179
Clipboard . SetFileDropList ( paths ) ;
181
180
} ) ;
182
-
181
+
183
182
if ( exception == null )
184
183
{
185
184
if ( showDefaultNotification )
@@ -218,7 +217,7 @@ public async void CopyToClipboard(string stringToCopy, bool directCopy = false,
218
217
{
219
218
LogException ( nameof ( PublicAPIInstance ) , "Failed to copy text to clipboard" , exception ) ;
220
219
ShowMsgError ( GetTranslation ( "failedToCopy" ) ) ;
221
- }
220
+ }
222
221
}
223
222
}
224
223
@@ -327,7 +326,7 @@ public void SavePluginSettings()
327
326
328
327
( ( PluginJsonStorage < T > ) _pluginJsonStorages [ type ] ) . Save ( ) ;
329
328
}
330
-
329
+
331
330
public void OpenDirectory ( string directoryPath , string fileNameOrFilePath = null )
332
331
{
333
332
try
@@ -412,7 +411,7 @@ public void OpenDirectory(string directoryPath, string fileNameOrFilePath = null
412
411
413
412
private void OpenUri ( Uri uri , bool ? inPrivate = null , bool forceBrowser = false )
414
413
{
415
- if ( uri . IsFile && ! File . Exists ( uri . LocalPath ) && ! Directory . Exists ( uri . LocalPath ) )
414
+ if ( uri . IsFile && ! FilesFolders . FileOrLocationExists ( uri . LocalPath ) )
416
415
{
417
416
ShowMsgError ( GetTranslation ( "errorTitle" ) , string . Format ( GetTranslation ( "fileNotFoundError" ) , uri . LocalPath ) ) ;
418
417
return ;
@@ -493,7 +492,7 @@ public void OpenAppUri(Uri appUri)
493
492
OpenUri ( appUri ) ;
494
493
}
495
494
496
- public void ToggleGameMode ( )
495
+ public void ToggleGameMode ( )
497
496
{
498
497
_mainVM . ToggleGameMode ( ) ;
499
498
}
0 commit comments