Skip to content

Commit 24bbfcc

Browse files
committed
Support numerical box for priority
1 parent dfb6b0a commit 24bbfcc

File tree

4 files changed

+4
-207
lines changed

4 files changed

+4
-207
lines changed

Flow.Launcher/PriorityChangeWindow.xaml

Lines changed: 0 additions & 121 deletions
This file was deleted.

Flow.Launcher/PriorityChangeWindow.xaml.cs

Lines changed: 0 additions & 67 deletions
This file was deleted.

Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
Maximum="999"
7171
Minimum="-999"
7272
SpinButtonPlacementMode="Inline"
73-
ToolTip="{DynamicResource priorityToolTip}" />
73+
ToolTip="{DynamicResource priorityToolTip}"
74+
Value="{Binding Priority, Mode=TwoWay}" />
7475
</StackPanel>
7576

7677
<StackPanel

Flow.Launcher/ViewModel/PluginViewModel.cs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ public int Priority
8888
get => PluginPair.Metadata.Priority;
8989
set
9090
{
91-
if (PluginPair.Metadata.Priority != value)
92-
{
93-
ChangePriority(value);
94-
}
91+
PluginPair.Metadata.Priority = value;
92+
PluginSettingsObject.Priority = value;
9593
}
9694
}
9795

@@ -151,20 +149,6 @@ public void OnSearchDelayTimeChanged()
151149
OnPropertyChanged(nameof(SearchDelayTimeText));
152150
}
153151

154-
public void ChangePriority(int newPriority)
155-
{
156-
PluginPair.Metadata.Priority = newPriority;
157-
PluginSettingsObject.Priority = newPriority;
158-
OnPropertyChanged(nameof(Priority));
159-
}
160-
161-
[RelayCommand]
162-
private void EditPluginPriority()
163-
{
164-
var priorityChangeWindow = new PriorityChangeWindow(PluginPair. Metadata.ID, this);
165-
priorityChangeWindow.ShowDialog();
166-
}
167-
168152
[RelayCommand]
169153
private void OpenPluginDirectory()
170154
{

0 commit comments

Comments
 (0)