55using System . Linq ;
66using System . Runtime . InteropServices ;
77using System . Windows ;
8- using Flow . Launcher . Infrastructure ;
9- using Flow . Launcher . Infrastructure . UserSettings ;
108using Windows . Win32 ;
119using Windows . Win32 . Foundation ;
1210using Windows . Win32 . Security ;
@@ -52,6 +50,8 @@ public class Main : IPlugin, ISettingProvider, IPluginI18n
5250 private const SHUTDOWN_REASON REASON = SHUTDOWN_REASON . SHTDN_REASON_MAJOR_OTHER |
5351 SHUTDOWN_REASON . SHTDN_REASON_FLAG_PLANNED ;
5452
53+ private const string Documentation = "https://flowlauncher.com/docs/#/usage-tips" ;
54+
5555 private PluginInitContext _context ;
5656 private Settings _settings ;
5757 private ThemeSelector _themeSelector ;
@@ -445,11 +445,11 @@ private List<Result> Commands(Query query)
445445 Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xf12b " ) ,
446446 Title = "Open Log Location" ,
447447 IcoPath = "Images\\ app.png" ,
448- CopyText = DataLocation . VersionLogDirectory ,
449- AutoCompleteText = DataLocation . VersionLogDirectory ,
448+ CopyText = _context . API . GetLogDirectory ( ) ,
449+ AutoCompleteText = _context . API . GetLogDirectory ( ) ,
450450 Action = c =>
451451 {
452- _context . API . OpenDirectory ( DataLocation . VersionLogDirectory ) ;
452+ _context . API . OpenDirectory ( _context . API . GetLogDirectory ( ) ) ;
453453 return true ;
454454 }
455455 } ,
@@ -458,11 +458,11 @@ private List<Result> Commands(Query query)
458458 Title = "Flow Launcher Tips" ,
459459 Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xe897 " ) ,
460460 IcoPath = "Images\\ app.png" ,
461- CopyText = Constant . Documentation ,
462- AutoCompleteText = Constant . Documentation ,
461+ CopyText = Documentation ,
462+ AutoCompleteText = Documentation ,
463463 Action = c =>
464464 {
465- _context . API . OpenUrl ( Constant . Documentation ) ;
465+ _context . API . OpenUrl ( Documentation ) ;
466466 return true ;
467467 }
468468 } ,
@@ -471,11 +471,11 @@ private List<Result> Commands(Query query)
471471 Title = "Flow Launcher UserData Folder" ,
472472 Glyph = new GlyphInfo ( FontFamily : "/Resources/#Segoe Fluent Icons" , Glyph : "\xf12b " ) ,
473473 IcoPath = "Images\\ app.png" ,
474- CopyText = DataLocation . DataDirectory ( ) ,
475- AutoCompleteText = DataLocation . DataDirectory ( ) ,
474+ CopyText = _context . API . GetDataDirectory ( ) ,
475+ AutoCompleteText = _context . API . GetDataDirectory ( ) ,
476476 Action = c =>
477477 {
478- _context . API . OpenDirectory ( DataLocation . DataDirectory ( ) ) ;
478+ _context . API . OpenDirectory ( _context . API . GetDataDirectory ( ) ) ;
479479 return true ;
480480 }
481481 } ,
0 commit comments