Skip to content

Commit 14216a4

Browse files
Remove redundant default value
1 parent bade0fc commit 14216a4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public partial class MainViewModel : BaseModel, ISavable
3232
{
3333
#region Private Fields
3434

35-
private const string DefaultOpenResultModifiers = "Alt";
36-
3735
private bool _isQueryRunning;
3836
private Query _lastQuery;
3937
private string _queryTextBeforeLeaveResults;
@@ -103,8 +101,6 @@ public MainViewModel(Settings settings)
103101
RegisterViewUpdate();
104102
RegisterResultsUpdatedEvent();
105103
RegisterClockAndDateUpdateAsync();
106-
107-
SetOpenResultModifiers();
108104
}
109105

110106
private void RegisterViewUpdate()
@@ -513,7 +509,7 @@ public double MainWindowWidth
513509

514510
public string PluginIconPath { get; set; } = null;
515511

516-
public string OpenResultCommandModifiers { get; private set; }
512+
public string OpenResultCommandModifiers => Settings.OpenResultModifiers;
517513

518514
public string Image => Constant.QueryTextBoxIconImagePath;
519515

@@ -876,11 +872,6 @@ private bool HistorySelected()
876872

877873
#region Hotkey
878874

879-
private void SetOpenResultModifiers()
880-
{
881-
OpenResultCommandModifiers = Settings.OpenResultModifiers ?? DefaultOpenResultModifiers;
882-
}
883-
884875
public void ToggleFlowLauncher()
885876
{
886877
if (!MainWindowVisibilityStatus)

0 commit comments

Comments
 (0)