Flow.Launcher/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml.cs
2025-04-08 20:30:40 +08:00

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;
}
}
}