mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Show notification when failing to enable/disable autostartup
This commit is contained in:
parent
bde85c87a7
commit
c557031ef1
28 changed files with 89 additions and 15 deletions
|
|
@ -106,9 +106,21 @@ namespace Flow.Launcher
|
|||
|
||||
private void AutoStartup()
|
||||
{
|
||||
// we try to enable auto-startup on first launch, or reenable if it was removed
|
||||
// but the user still has the setting set
|
||||
if (_settings.StartFlowLauncherOnSystemStartup && !Helper.AutoStartup.IsEnabled)
|
||||
{
|
||||
Helper.AutoStartup.Enable();
|
||||
try
|
||||
{
|
||||
Helper.AutoStartup.Enable();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// but if it fails (permissions, etc) then don't keep retrying
|
||||
// this also gives the user a visual indication in the Settings widget
|
||||
_settings.StartFlowLauncherOnSystemStartup = false;
|
||||
Notification.Show(InternationalizationManager.Instance.GetTranslation("registerAutoStartFailed"), e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Flow.Launcher.Helper
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("AutoStartup", $"Ignoring non-critical registry error (user permissions?): {e}");
|
||||
Log.Error("AutoStartup", $"Ignoring non-critical registry error (querying if enabled): {e}");
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -41,7 +41,8 @@ namespace Flow.Launcher.Helper
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("AutoStartup", $"Ignoring non-critical registry error (user permissions?): {e}");
|
||||
Log.Error("AutoStartup", $"Failed to disable auto-startup: {e}");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -54,9 +55,9 @@ namespace Flow.Launcher.Helper
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("AutoStartup", $"Ignoring non-critical registry error (user permissions?): {e}");
|
||||
Log.Error("AutoStartup", $"Failed to enable auto-startup: {e}");
|
||||
throw;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Start Flow Launcher ved system start</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Skjul Flow Launcher ved mistet fokus</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Vis ikke notifikationer om nye versioner</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Husk seneste position</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portabler Modus</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Speichern Sie alle Einstellungen und Benutzerdaten in einem Ordner (nützlich bei Verwendung mit Wechseldatenträgern oder Clouddiensten).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Starte Flow Launcher bei Systemstart</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Verstecke Flow Launcher wenn der Fokus verloren geht</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Zeige keine Nachricht wenn eine neue Version vorhanden ist</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Merke letzte Ausführungsposition</system:String>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Start Flow Launcher on system startup</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Hide Flow Launcher when focus is lost</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Do not show new version notifications</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Remember last launch location</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Modo portable</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Almacena todos los ajustes y datos de usuario en una sola carpeta (útil cuando se utiliza con unidades extraíbles o servicios en la nube).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Iniciar Flow Launcher al arrancar el sistema</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Ocultar Flow Launcher cuando se pierde el enfoque</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">No mostrar notificaciones de nuevas versiones</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Recordar última ubicación de inicio</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Modo Portable</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Guarda toda la configuración y datos de usuario en una carpeta (Útil cuando se utiliza con unidades extraíbles o servicios en la nube).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Cargar Flow Launcher al iniciar el sistema</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Ocultar Flow Launcher cuando se pierda el foco</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">No mostrar notificaciones de nuevas versiones</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Recordar última posición de Flow Launcher</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Mode Portable</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Stocker tous les paramètres et données utilisateur dans un seul dossier (Pratique en cas d'utilisation de disques amovibles ou de services cloud).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Lancer Flow Launcher au démarrage du système</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Cacher Flow Launcher lors de la perte de focus</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Ne pas afficher les notifications lors d'une nouvelle version</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Se souvenir du dernier emplacement de la fenêtre</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Avvia Wow all'avvio di Windows</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Nascondi Flow Launcher quando perde il focus</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Non mostrare le notifiche per una nuova versione</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Ricorda l'ultima posizione di avvio del launcher</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">スタートアップ時にFlow Launcherを起動する</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">フォーカスを失った時にFlow Launcherを隠す</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">最新版が入手可能であっても、アップグレードメッセージを表示しない</system:String>
|
||||
<system:String x:Key="rememberLastLocation">前回のランチャーの位置を記憶</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">포터블 모드</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">모든 설정이 폴더안에 들어갑니다. USB 드라이브나 클라우드로 사용 가능합니다.</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">시스템 시작 시 Flow Launcher 실행</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">포커스 잃으면 Flow Launcher 숨김</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">새 버전 알림 끄기</system:String>
|
||||
<system:String x:Key="rememberLastLocation">마지막 실행 위치 기억</system:String>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
<system:String x:Key="flowlauncher_settings">Flow Launcher-innstillinger</system:String>
|
||||
<system:String x:Key="general">Generelt</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Start Flow Launcher ved systemstart</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Skjul Flow Launcher ved mistet fokus</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Ikke vis varsel om ny versjon</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Husk siste plassering</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Start Flow Launcher on system startup</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Hide Flow Launcher when focus is lost</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Do not show new version notifications</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Remember last launch location</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Draagbare Modus</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Alle instellingen en gebruikersgegevens opslaan in één map (Nuttig bij het gebruik van verwijderbare schijven of cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Start Flow Launcher als systeem opstart</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Verberg Flow Launcher als focus verloren is</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Laat geen nieuwe versie notificaties zien</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Herinner laatste opstart locatie</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Uruchamiaj Flow Launcher przy starcie systemu</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Ukryj okno Flow Launcher kiedy przestanie ono być aktywne</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Nie pokazuj powiadomienia o nowej wersji</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Zapamiętaj ostatnią pozycję okna</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Iniciar Flow Launcher com inicialização do sistema</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Esconder Flow Launcher quando foco for perdido</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Não mostrar notificações de novas versões</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Lembrar última localização de lançamento</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Modo portátil</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Guardar todas as definições e dados do utilizador numa pasta (indicado se utilizar discos amovíveis ou serviços cloud)</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Iniciar Flow Launcher ao arrancar o sistema</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Ocultar Flow Launcher ao perder o foco</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Não notificar acerca de novas versões</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Memorizar localização anterior</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Запускать Flow Launcher при запуске системы</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Скрывать Flow Launcher, если потерян фокуc</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Не отображать сообщение об обновлении, когда доступна новая версия</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Запомнить последнее место запуска</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Prenosný režim</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Uloží všetky nastavenia a používateľské údaje do jedného priečinka (Užitočné pri vymeniteľných diskoch a cloudových službách).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Spustiť Flow Launcher pri spustení systému</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Schovať Flow Launcher po strate fokusu</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Nezobrazovať upozornenia na novú verziu</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Zapamätať si posledné umiestnenie</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Pokreni Flow Launcher pri podizanju sistema</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Sakri Flow Launcher kada se izgubi fokus</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Ne prikazuj obaveštenje o novoj verziji</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Zapamti lokaciju poslednjeg pokretanja</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Taşınabilir Mod</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Tüm ayarları ve kullanıcı verilerini tek bir klasörde saklayın (Çıkarılabilir sürücüler veya bulut hizmetleri ile kullanıldığında kullanışlıdır).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Flow Launcher'u başlangıçta başlat</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Odak pencereden ayrıldığında Flow Launcher'u gizle</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Güncelleme bildirimlerini gösterme</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Pencere konumunu hatırla</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Портативний режим</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Зберігати всі налаштування і дані користувача в одній теці (буде корисно при видаленні дисків або хмарних сервісах).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">Запускати Flow Launcher при запуску системи</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Сховати Flow Launcher, якщо втрачено фокус</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Не повідомляти про доступні нові версії</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Запам'ятати останнє місце запуску</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">便携模式</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">将所有设置和用户数据存储在一个文件夹中 (可用于可移除驱动器或云服务)。</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">开机自启</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">失去焦点时自动隐藏 Flow Launcher</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">不显示新版本提示</system:String>
|
||||
<system:String x:Key="rememberLastLocation">记住上次启动位置</system:String>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
<system:String x:Key="portableMode">Portable Mode</system:String>
|
||||
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>
|
||||
<system:String x:Key="startFlowLauncherOnSystemStartup">開機時啟動</system:String>
|
||||
<system:String x:Key="registerAutoStartFailed">Error enabling launch on startup</system:String>
|
||||
<system:String x:Key="deregisterAutoStartFailed">Error disabling launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">失去焦點時自動隱藏 Flow Launcher</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">不顯示新版本提示</system:String>
|
||||
<system:String x:Key="rememberLastLocation">記住上次啟動位置</system:String>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace Flow.Launcher
|
|||
}
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "<Pending>")]
|
||||
public static void Show(string title, string subTitle, string iconPath)
|
||||
public static void Show(string title, string subTitle, string iconPath = null)
|
||||
{
|
||||
// Handle notification for win7/8/early win10
|
||||
if (legacy)
|
||||
|
|
@ -45,4 +45,4 @@ namespace Flow.Launcher
|
|||
msg.Show(title, subTitle, iconPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
|
|
@ -286,4 +286,4 @@ namespace Flow.Launcher
|
|||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
|
@ -306,8 +306,8 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
Notification.Show(
|
||||
InternationalizationManager.Instance.GetTranslation("success"),
|
||||
InternationalizationManager.Instance.GetTranslation("completedSuccessfully"),
|
||||
"");
|
||||
InternationalizationManager.Instance.GetTranslation("completedSuccessfully")
|
||||
);
|
||||
}))
|
||||
.ConfigureAwait(false);
|
||||
});
|
||||
|
|
@ -927,4 +927,4 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,12 +220,29 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
public void SetStartup()
|
||||
{
|
||||
AutoStartup.Enable();
|
||||
try
|
||||
{
|
||||
AutoStartup.Enable();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Notification.Show(InternationalizationManager.Instance.GetTranslation("registerAutoStartFailed"), e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveStartup()
|
||||
{
|
||||
AutoStartup.Disable();
|
||||
if (AutoStartup.IsEnabled)
|
||||
{
|
||||
try
|
||||
{
|
||||
AutoStartup.Disable();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Notification.Show(InternationalizationManager.Instance.GetTranslation("deregisterAutoStartFailed"), e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue