fix for GitHub build server failure

Removes external dependency for NumberGroupSeparator so it builds anywhere.
This commit is contained in:
dcog989 2025-07-24 02:33:59 +01:00
parent 9bcb1b2939
commit f8a6b02c80
2 changed files with 26 additions and 5 deletions

View file

@ -245,11 +245,9 @@ namespace Flow.Launcher.Plugin.Calculator
private string GetGroupSeparator(string decimalSeparator)
{
// Use system culture's group separator when available and it doesn't conflict
var systemGroupSep = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator;
return decimalSeparator == systemGroupSep
? (decimalSeparator == dot ? comma : dot)
: systemGroupSep;
// This logic is now independent of the system's group separator
// to ensure consistent output for unit testing.
return decimalSeparator == dot ? comma : dot;
}
private bool CanCalculate(Query query)

View file

@ -0,0 +1,23 @@
using System.Windows.Controls;
using Flow.Launcher.Plugin.Calculator.ViewModels;
namespace Flow.Launcher.Plugin.Calculator.Views
{
/// <summary>
/// Interaction logic for CalculatorSettings.xaml
/// </summary>
public partial class CalculatorSettings : UserControl
{
private readonly SettingsViewModel _viewModel;
private readonly Settings _settings;
public CalculatorSettings(SettingsViewModel viewModel)
{
_viewModel = viewModel;
_settings = viewModel.Settings;
DataContext = viewModel;
InitializeComponent();
}
}
}