mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
20 lines
501 B
C#
20 lines
501 B
C#
using ModernWpf.Controls;
|
|
|
|
namespace Flow.Launcher.Resources.Controls;
|
|
|
|
public partial class InstalledPluginDisplay
|
|
{
|
|
public InstalledPluginDisplay()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
// This is used for PriorityControl to force its value to be 0 when the user clears the value
|
|
private void NumberBox_OnValueChanged(NumberBox sender, NumberBoxValueChangedEventArgs args)
|
|
{
|
|
if (double.IsNaN(args.NewValue))
|
|
{
|
|
sender.Value = 0;
|
|
}
|
|
}
|
|
}
|