mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix for GitHub build server failure
Removes external dependency for NumberGroupSeparator so it builds anywhere.
This commit is contained in:
parent
9bcb1b2939
commit
f8a6b02c80
2 changed files with 26 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue