mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add administrator text in tray icon
This commit is contained in:
parent
7549bba293
commit
369ed86d1d
2 changed files with 6 additions and 1 deletions
|
|
@ -46,6 +46,7 @@
|
|||
<system:String x:Key="PositionReset">Position Reset</system:String>
|
||||
<system:String x:Key="PositionResetToolTip">Reset search window position</system:String>
|
||||
<system:String x:Key="queryTextBoxPlaceholder">Type here to search</system:String>
|
||||
<system:String x:Key="admin">(Admin)</system:String>
|
||||
|
||||
<!-- Setting General -->
|
||||
<system:String x:Key="flowlauncher_settings">Settings</system:String>
|
||||
|
|
|
|||
|
|
@ -595,9 +595,13 @@ namespace Flow.Launcher
|
|||
|
||||
private void InitializeNotifyIcon()
|
||||
{
|
||||
var text = Win32Helper.IsAdministrator() ?
|
||||
Constant.FlowLauncherFullName + " " + App.API.GetTranslation("admin") :
|
||||
Constant.FlowLauncherFullName;
|
||||
|
||||
_notifyIcon = new NotifyIcon
|
||||
{
|
||||
Text = Constant.FlowLauncherFullName,
|
||||
Text = text,
|
||||
Icon = Constant.Version == "1.0.0" ? Properties.Resources.dev : Properties.Resources.app,
|
||||
Visible = !_settings.HideNotifyIcon
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue