bloxstrap/Bloxstrap/Views/Pages/ModsPage.xaml.cs
pizzaboxer c5d46f5d46
Change how default flag values are handled
they're now all handled before they're saved/loaded
2023-04-13 21:04:54 +02:00

29 lines
774 B
C#

using System;
using System.Windows;
using System.Windows.Input;
using Bloxstrap.ViewModels;
namespace Bloxstrap.Views.Pages
{
/// <summary>
/// Interaction logic for ModsPage.xaml
/// </summary>
public partial class ModsPage
{
public ModsPage()
{
App.FastFlags.Load();
DataContext = new ModsViewModel();
InitializeComponent();
// fullscreen optimizations were only added in windows 10 build 17093
if (Environment.OSVersion.Version.Build < 17093)
this.MiscellaneousOptions.Visibility = Visibility.Collapsed;
}
private void ValidateInt32(object sender, TextCompositionEventArgs e) => e.Handled = !Int32.TryParse(e.Text, out int _);
}
}