diff --git a/Gavilya/App.xaml.cs b/Gavilya/App.xaml.cs index c49417e..d53a1f8 100644 --- a/Gavilya/App.xaml.cs +++ b/Gavilya/App.xaml.cs @@ -53,6 +53,8 @@ protected override void OnStartup(StartupEventArgs e) Language.zh_CN => "zh-CN", }); + currentProfile.Settings.EnableSearchShortcut ??= true; + if (currentProfile.Settings.MakeAutoSave && IsSaveDay(currentProfile.Settings.AutoSaveDay) && !File.Exists($@"{currentProfile.Settings.SavePath}\GavilyaProfiles_{DateTime.Now:yyyy_MM_dd}.g4v")) { profiles.Backup(currentProfile.Settings.SavePath); diff --git a/Gavilya/Components/ExecutableSelectorComponent.xaml b/Gavilya/Components/ExecutableSelectorComponent.xaml new file mode 100644 index 0000000..8a7ac92 --- /dev/null +++ b/Gavilya/Components/ExecutableSelectorComponent.xaml @@ -0,0 +1,32 @@ + + + diff --git a/Gavilya/Components/ExecutableSelectorComponent.xaml.cs b/Gavilya/Components/ExecutableSelectorComponent.xaml.cs new file mode 100644 index 0000000..86a8a41 --- /dev/null +++ b/Gavilya/Components/ExecutableSelectorComponent.xaml.cs @@ -0,0 +1,39 @@ +/* +MIT License + +Copyright (c) Léo Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +using System.Windows.Controls; + +namespace Gavilya.Components +{ + /// + /// Interaction logic for ExecutableSelectorComponent.xaml + /// + public partial class ExecutableSelectorComponent : UserControl + { + public ExecutableSelectorComponent() + { + InitializeComponent(); + } + } +} diff --git a/Gavilya/Gavilya.csproj b/Gavilya/Gavilya.csproj index 79ce1d2..e8de4d6 100644 --- a/Gavilya/Gavilya.csproj +++ b/Gavilya/Gavilya.csproj @@ -8,7 +8,7 @@ True app.manifest Gavilya - 4.1.0.2310 + 4.2.0.2311 Léo Corporation Gavilya is a simple game launcher for Windows. © 2023 @@ -51,7 +51,7 @@ - + diff --git a/Gavilya/Helpers/Context.cs b/Gavilya/Helpers/Context.cs index b282ea6..48394cd 100644 --- a/Gavilya/Helpers/Context.cs +++ b/Gavilya/Helpers/Context.cs @@ -25,6 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE namespace Gavilya.Helpers; public static class Context { - public static string Version => "4.1.0.2310"; + public static string Version => "4.2.0.2311"; public static string LastVersionLink => "https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/Gavilya/Version.txt"; } diff --git a/Gavilya/MainWindow.xaml b/Gavilya/MainWindow.xaml index 68bde9b..c9e496a 100644 --- a/Gavilya/MainWindow.xaml +++ b/Gavilya/MainWindow.xaml @@ -62,6 +62,7 @@ + - + + + + + + diff --git a/Gavilya/Views/SettingsViews/SearchView.xaml b/Gavilya/Views/SettingsViews/SearchView.xaml index 98b588b..033808a 100644 --- a/Gavilya/Views/SettingsViews/SearchView.xaml +++ b/Gavilya/Views/SettingsViews/SearchView.xaml @@ -100,6 +100,48 @@ + + + + + + + + + + + + +