mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
6cd830c5b5
commit
c2eca7dc39
1 changed files with 9 additions and 7 deletions
|
|
@ -14,15 +14,17 @@ namespace Flow.Launcher.Plugin.Explorer.Views
|
|||
{
|
||||
public partial class ExplorerSettings
|
||||
{
|
||||
private readonly SettingsViewModel viewModel;
|
||||
private List<Expander> _expanders;
|
||||
private readonly SettingsViewModel _viewModel;
|
||||
private readonly List<Expander> _expanders;
|
||||
|
||||
public ExplorerSettings(SettingsViewModel viewModel)
|
||||
{
|
||||
_viewModel = viewModel;
|
||||
DataContext = viewModel;
|
||||
|
||||
InitializeComponent();
|
||||
this.viewModel = viewModel;
|
||||
// DataContext = viewModel; // Removed duplicate
|
||||
|
||||
DataContext = viewModel;
|
||||
|
||||
ActionKeywordModel.Init(viewModel.Settings);
|
||||
|
||||
|
|
@ -63,7 +65,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
|
|||
{
|
||||
Path = s
|
||||
};
|
||||
viewModel.AppendLink(containerName, newFolderLink);
|
||||
_viewModel.AppendLink(containerName, newFolderLink);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +90,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views
|
|||
{
|
||||
if (tbFastSortWarning is not null)
|
||||
{
|
||||
tbFastSortWarning.Visibility = viewModel.FastSortWarningVisibility;
|
||||
tbFastSortWarning.Text = viewModel.SortOptionWarningMessage;
|
||||
tbFastSortWarning.Visibility = _viewModel.FastSortWarningVisibility;
|
||||
tbFastSortWarning.Text = _viewModel.SortOptionWarningMessage;
|
||||
}
|
||||
}
|
||||
private void LbxAccessLinks_OnDrop(object sender, DragEventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue