Skip to content

Commit ab854d5

Browse files
committed
change the option to EnableSuccessNotification
1 parent b80b4a6 commit ab854d5

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Collections.ObjectModel;
33
using System.Text.Json.Serialization;
44
using System.Windows;
@@ -462,7 +462,7 @@ public bool KeepMaxResults
462462

463463
public bool DontPromptUpdateMsg { get; set; }
464464
public bool EnableUpdateLog { get; set; }
465-
public bool DisableSuccessNotifications { get; set; }
465+
public bool EnableSuccessNotification { get; set; } = true;
466466

467467
public bool StartFlowLauncherOnSystemStartup { get; set; } = false;
468468
public bool UseLogonTaskForStartup { get; set; } = false;

Flow.Launcher/Languages/en.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
<system:String x:Key="hideOnStartupToolTip">Flow Launcher search window is hidden in the tray after starting up.</system:String>
126126
<system:String x:Key="hideNotifyIcon">Hide tray icon</system:String>
127127
<system:String x:Key="hideNotifyIconToolTip">When the icon is hidden from the tray, the Settings menu can be opened by right-clicking on the search window.</system:String>
128-
<system:String x:Key="disableSuccessNotifications">Disable notifications (non-error)</system:String>
129-
<system:String x:Key="disableSuccessNotificationsToolTip">Hide non-error notifications shown after actions (e.g. copy completed). Error notifications are still shown.</system:String>
128+
<system:String x:Key="enableSuccessNotification">Enable success notifications</system:String>
129+
<system:String x:Key="enableSuccessNotificationToolTip">Show non-error notifications after actions (e.g. copy completed). Error notifications are always shown.</system:String>
130130
<system:String x:Key="querySearchPrecision">Query Search Precision</system:String>
131131
<system:String x:Key="querySearchPrecisionToolTip">Changes minimum match score required for results.</system:String>
132132
<system:String x:Key="SearchPrecisionNone">None</system:String>

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Concurrent;
33
using System.Collections.Generic;
44
using System.Collections.Specialized;
@@ -129,7 +129,7 @@ public void ShowMsg(string title, string subTitle = "", string iconPath = "") =>
129129

130130
public void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true)
131131
{
132-
if (_settings.DisableSuccessNotifications &&
132+
if (!_settings.EnableSuccessNotification &&
133133
!string.Equals(iconPath, Constant.ErrorIcon, StringComparison.OrdinalIgnoreCase))
134134
{
135135
return;
@@ -143,7 +143,7 @@ public void ShowMsgWithButton(string title, string buttonText, Action buttonActi
143143

144144
public void ShowMsgWithButton(string title, string buttonText, Action buttonAction, string subTitle, string iconPath, bool useMainWindowAsOwner = true)
145145
{
146-
if (_settings.DisableSuccessNotifications &&
146+
if (!_settings.EnableSuccessNotification &&
147147
!string.Equals(iconPath, Constant.ErrorIcon, StringComparison.OrdinalIgnoreCase))
148148
{
149149
return;

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@
9494

9595
<ui:SettingsCard
9696
Margin="0 4 0 0"
97-
Description="{DynamicResource disableSuccessNotificationsToolTip}"
98-
Header="{DynamicResource disableSuccessNotifications}">
97+
Description="{DynamicResource enableSuccessNotificationToolTip}"
98+
Header="{DynamicResource enableSuccessNotification}">
9999
<ui:ToggleSwitch
100-
IsOn="{Binding Settings.DisableSuccessNotifications}"
100+
IsOn="{Binding Settings.EnableSuccessNotification}"
101101
OffContent="{DynamicResource disable}"
102102
OnContent="{DynamicResource enable}" />
103103
</ui:SettingsCard>

0 commit comments

Comments
 (0)