5
5
using System . Linq ;
6
6
using System . Runtime . InteropServices ;
7
7
using System . Windows ;
8
- using Flow . Launcher . Infrastructure ;
9
- using Flow . Launcher . Infrastructure . UserSettings ;
10
8
using Windows . Win32 ;
11
9
using Windows . Win32 . Foundation ;
12
10
using Windows . Win32 . Security ;
@@ -52,6 +50,8 @@ public class Main : IPlugin, ISettingProvider, IPluginI18n
52
50
private const SHUTDOWN_REASON REASON = SHUTDOWN_REASON . SHTDN_REASON_MAJOR_OTHER |
53
51
SHUTDOWN_REASON . SHTDN_REASON_FLAG_PLANNED ;
54
52
53
+ private const string Documentation = "https://flowlauncher.com/docs/#/usage-tips" ;
54
+
55
55
private PluginInitContext _context ;
56
56
private Settings _settings ;
57
57
private ThemeSelector _themeSelector ;
@@ -445,11 +445,11 @@ private List<Result> Commands(Query query)
445
445
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xf12b " ) ,
446
446
Title = "Open Log Location" ,
447
447
IcoPath = "Images\\ app.png" ,
448
- CopyText = DataLocation . VersionLogDirectory ,
449
- AutoCompleteText = DataLocation . VersionLogDirectory ,
448
+ CopyText = _context . API . GetLogDirectory ( ) ,
449
+ AutoCompleteText = _context . API . GetLogDirectory ( ) ,
450
450
Action = c =>
451
451
{
452
- _context . API . OpenDirectory ( DataLocation . VersionLogDirectory ) ;
452
+ _context . API . OpenDirectory ( _context . API . GetLogDirectory ( ) ) ;
453
453
return true ;
454
454
}
455
455
} ,
@@ -458,11 +458,11 @@ private List<Result> Commands(Query query)
458
458
Title = "Flow Launcher Tips" ,
459
459
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xe897 " ) ,
460
460
IcoPath = "Images\\ app.png" ,
461
- CopyText = Constant . Documentation ,
462
- AutoCompleteText = Constant . Documentation ,
461
+ CopyText = Documentation ,
462
+ AutoCompleteText = Documentation ,
463
463
Action = c =>
464
464
{
465
- _context . API . OpenUrl ( Constant . Documentation ) ;
465
+ _context . API . OpenUrl ( Documentation ) ;
466
466
return true ;
467
467
}
468
468
} ,
@@ -471,11 +471,11 @@ private List<Result> Commands(Query query)
471
471
Title = "Flow Launcher UserData Folder" ,
472
472
Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xf12b " ) ,
473
473
IcoPath = "Images\\ app.png" ,
474
- CopyText = DataLocation . DataDirectory ( ) ,
475
- AutoCompleteText = DataLocation . DataDirectory ( ) ,
474
+ CopyText = _context . API . GetDataDirectory ( ) ,
475
+ AutoCompleteText = _context . API . GetDataDirectory ( ) ,
476
476
Action = c =>
477
477
{
478
- _context . API . OpenDirectory ( DataLocation . DataDirectory ( ) ) ;
478
+ _context . API . OpenDirectory ( _context . API . GetDataDirectory ( ) ) ;
479
479
return true ;
480
480
}
481
481
} ,
0 commit comments