mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows;
|
|
using System.Windows.Navigation;
|
|
using Flow.Launcher.Core.Plugin;
|
|
using Flow.Launcher.Infrastructure;
|
|
using Flow.Launcher.SettingPages.ViewModels;
|
|
using Flow.Launcher.Infrastructure.UserSettings;
|
|
using Path = System.IO.Path;
|
|
using MessageBox = System.Windows.Forms.MessageBox;
|
|
using Flow.Launcher.SettingPages.ViewModels;
|
|
using System;
|
|
using System.IO;
|
|
using System.Windows;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Navigation;
|
|
using Flow.Launcher.Core.Plugin;
|
|
using Flow.Launcher.Infrastructure.UserSettings;
|
|
using Flow.Launcher.Plugin;
|
|
using Flow.Launcher.SettingPages.ViewModels;
|
|
using Flow.Launcher.ViewModel;
|
|
|
|
namespace Flow.Launcher.SettingPages.Views
|
|
{
|
|
public partial class General
|
|
{
|
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
|
{
|
|
if (!IsInitialized)
|
|
{
|
|
if (e.ExtraData is not Settings settings)
|
|
throw new ArgumentException("Settings is not passed to General page");
|
|
DataContext = new GeneralViewModel(settings);
|
|
InitializeComponent();
|
|
}
|
|
base.OnNavigatedTo(e);
|
|
}
|
|
}
|
|
}
|