diff --git a/App.xaml.cs b/App.xaml.cs
index 2ab2d6e..497cdf8 100644
--- a/App.xaml.cs
+++ b/App.xaml.cs
@@ -1,17 +1,11 @@
-using System;
-using System.ComponentModel;
-
using FruitLanguageSwitcher.Core;
using H.NotifyIcon;
using Microsoft.Toolkit.Uwp.Notifications;
using Microsoft.UI.Xaml;
-using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
-using Windows.ApplicationModel;
-
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
@@ -94,11 +88,11 @@ private static void InitializeFunction()
if(!Switcher.Ready())
{
- Settings.LanguageSwitcherEnabled = false;
- new ToastContentBuilder()
- .AddText("Unable to enable language switcher")
- .AddText("Please make sure you have both keyboard languages and IME languages installed")
- .Show();
+ Settings.LanguageSwitcherEnabled = false;
+ new ToastContentBuilder()
+ .AddText("Unable to enable language switcher")
+ .AddText("Please make sure you have both keyboard languages and IME languages installed")
+ .Show();
}
}
diff --git a/FruitLanguageSwitcher.csproj b/FruitLanguageSwitcher.csproj
index 08dc6d3..0b6cc59 100644
--- a/FruitLanguageSwitcher.csproj
+++ b/FruitLanguageSwitcher.csproj
@@ -6,9 +6,7 @@
net8.0-windows10.0.22621.0
10.0.18362.0
x64;arm64
- win-x64;win-arm64
true
- true
true
true
true
@@ -18,6 +16,14 @@
disable
+
+ win-x64
+
+
+
+ win-arm64
+
+
@@ -48,13 +54,13 @@
True
False
False
- False
+ True
False
Always
x64
0
True
- A4033C3B4F345A042F1D980927710330A30416B0
+ FB69A2BAF37F01275BC888753500C0C0C576F2A8
SHA256
Assets\durian.ico
app.manifest
diff --git a/Package.appxmanifest b/Package.appxmanifest
index fdea4fc..c66dda9 100644
--- a/Package.appxmanifest
+++ b/Package.appxmanifest
@@ -3,7 +3,7 @@
+
@@ -68,14 +69,14 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/Views/Settings.xaml.cs b/Views/Settings.xaml.cs
index c4f6b84..2f26641 100644
--- a/Views/Settings.xaml.cs
+++ b/Views/Settings.xaml.cs
@@ -18,6 +18,7 @@ public Settings()
private void StartUp_Toggle(object sender, RoutedEventArgs e)
{
Core.Settings.StartUp = (sender as ToggleSwitch).IsOn;
+ (sender as ToggleSwitch).IsOn = Core.Settings.StartUp;
}
private void ReloadButton_Click(object sender, RoutedEventArgs e)