Skip to content

Commit 459a369

Browse files
committed
feat: remove btn restart
1 parent e0f7722 commit 459a369

3 files changed

Lines changed: 0 additions & 24 deletions

File tree

Flow.Launcher/Languages/en.xaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@
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>
128128
<system:String x:Key="ignoreAccents">Ignore accents when searching results</system:String>
129129
<system:String x:Key="ignoreAccentsToolTip">When this option is changed, a restart is required. When enabled, you will be able to find results that contain accented characters more easily.</system:String>
130-
<system:String x:Key="ignoreAccentsRestartTitle">Restart Required</system:String>
131-
<system:String x:Key="ignoreAccentsRestartMessage">Changing accent sensitivity requires a restart of Flow Launcher to take effect.</system:String>
132-
<system:String x:Key="ignoreAccentsRestartButton">Restart Now</system:String>
133130
<system:String x:Key="querySearchPrecision">Query Search Precision</system:String>
134131
<system:String x:Key="querySearchPrecisionToolTip">Changes minimum match score required for results.</system:String>
135132
<system:String x:Key="SearchPrecisionNone">None</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
2222
private readonly Updater _updater;
2323
private readonly Portable _portable;
2424
private readonly Internationalization _translater;
25-
private readonly bool _initialIgnoreAccents;
2625
public SettingsPaneGeneralViewModel(Settings settings, Updater updater, Portable portable, Internationalization translater)
2726
{
2827
Settings = settings;
2928
_updater = updater;
3029
_portable = portable;
3130
_translater = translater;
32-
_initialIgnoreAccents = settings.IgnoreAccents;
3331
UpdateEnumDropdownLocalizations();
3432
}
3533

@@ -174,7 +172,6 @@ public bool EnableDialogJump
174172
public class DialogJumpWindowPositionData : DropdownDataGeneric<DialogJumpWindowPositions> { }
175173
public class DialogJumpResultBehaviourData : DropdownDataGeneric<DialogJumpResultBehaviours> { }
176174
public class DialogJumpFileResultBehaviourData : DropdownDataGeneric<DialogJumpFileResultBehaviours> { }
177-
public bool IgnoreAccentsRestartRequired => Settings.IgnoreAccents != _initialIgnoreAccents;
178175

179176
public List<DialogJumpWindowPositionData> DialogJumpWindowPositions { get; } =
180177
DropdownDataGeneric<DialogJumpWindowPositions>.GetValues<DialogJumpWindowPositionData>("DialogJumpWindowPosition");
@@ -208,7 +205,6 @@ public bool IgnoreAccents
208205
{
209206
Settings.IgnoreAccents = value;
210207
OnPropertyChanged();
211-
OnPropertyChanged(nameof(IgnoreAccentsRestartRequired));
212208
}
213209
}
214210
}
@@ -365,11 +361,6 @@ private static string GetFileFromDialog(string title, string filter = "")
365361
_ => string.Empty
366362
};
367363
}
368-
369-
[RelayCommand]
370-
private void RestartApp()
371-
=> App.API.RestartApp();
372-
373364
private void UpdateApp()
374365
{
375366
_ = _updater.UpdateAppAsync(false);

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -569,18 +569,6 @@
569569
OffContent="{DynamicResource disable}"
570570
OnContent="{DynamicResource enable}" />
571571
</ui:SettingsCard>
572-
<ui:InfoBar
573-
Title="{DynamicResource ignoreAccentsRestartTitle}"
574-
Margin="0 4 0 0"
575-
IsClosable="False"
576-
IsOpen="True"
577-
Message="{DynamicResource ignoreAccentsRestartMessage}"
578-
Severity="Warning"
579-
Visibility="{Binding IgnoreAccentsRestartRequired, Converter={StaticResource BoolToVisibilityConverter}}">
580-
<ui:InfoBar.ActionButton>
581-
<Button Command="{Binding RestartAppCommand}" Content="{DynamicResource ignoreAccentsRestartButton}" />
582-
</ui:InfoBar.ActionButton>
583-
</ui:InfoBar>
584572

585573
<ui:SettingsCard Margin="0 14 0 0" Header="{DynamicResource language}">
586574
<ui:SettingsCard.HeaderIcon>

0 commit comments

Comments
 (0)