diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 546a061f..78234815 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -2347,8 +2347,7 @@ - 0) AutoSavedStrokesLocation.Text = folderBrowser.SelectedPath; + SaveSettingsToFile(); } private void SetAutoSavedStrokesLocationToDiskDButton_Click(object sender, RoutedEventArgs e) { - // 修改默认路径为软件根目录下的 Saves 文件夹 - string appDirectory = AppDomain.CurrentDomain.BaseDirectory; - string savesPath = System.IO.Path.Combine(appDirectory, "Saves"); - AutoSavedStrokesLocation.Text = savesPath; + AutoSavedStrokesLocation.Text = @"D:\Ink Canvas"; + SaveSettingsToFile(); } private void SetAutoSavedStrokesLocationToDocumentFolderButton_Click(object sender, RoutedEventArgs e) { AutoSavedStrokesLocation.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Ink Canvas"; + SaveSettingsToFile(); } private void ToggleSwitchAutoDelSavedFiles_Toggled(object sender, RoutedEventArgs e) { @@ -1814,12 +1814,12 @@ namespace Ink_Canvas { } private void HyperlinkSourceToPresentRepository_Click(object sender, RoutedEventArgs e) { - Process.Start("https://github.com/ChangSakura/Ink-Canvas"); + Process.Start("https://bgithub.xyz/ChangSakura/Ink-Canvas"); HideSubPanels(); } private void HyperlinkSourceToOringinalRepository_Click(object sender, RoutedEventArgs e) { - Process.Start("https://github.com/WXRIW/Ink-Canvas"); + Process.Start("https://bgithub.xyz/WXRIW/Ink-Canvas"); HideSubPanels(); } @@ -1879,4 +1879,4 @@ namespace Ink_Canvas { } } } -} \ No newline at end of file +} diff --git a/Ink Canvas/Resources/Settings.cs b/Ink Canvas/Resources/Settings.cs index 0ceed0c3..f9862226 100644 --- a/Ink Canvas/Resources/Settings.cs +++ b/Ink Canvas/Resources/Settings.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using System.IO; namespace Ink_Canvas { @@ -347,7 +348,7 @@ namespace Ink_Canvas public int MinimumAutomationStrokeNumber { get; set; } = 0; [JsonProperty("autoSavedStrokesLocation")] - public string AutoSavedStrokesLocation = @"D:\Ink Canvas"; + public string AutoSavedStrokesLocation = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "saves"); [JsonProperty("autoDelSavedFiles")] public bool AutoDelSavedFiles = false; @@ -437,4 +438,4 @@ namespace Ink_Canvas [JsonProperty("directCallCiRand")] public bool DirectCallCiRand { get; set; } = false; } -} \ No newline at end of file +} diff --git a/README.md b/README.md index 9fb0263b..60726bd8 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,6 @@ 不能,但是你可以期待 icc-gtk4,是正在开发的仅支持 Linux 平台的 icc 移植版本。 ## ✏️ 贡献指南 -> [!NOTE] -> -> 请注意,本贡献指南由 Hydrogen( @Hydro11451 )撰写,尚未受到官方认可,并且尚未完成。 请前往 InkCanvasForClass/dubious-notes @@ -79,7 +76,7 @@ ## 贡献者 > [!NOTE] -> 此列表通过[All Contributers](https://allcontributors.org/)实现。由于此存储库使用“Beta优先”策略(即在`beta`分支中修改并PR到`main`),而@all-contributors Bot默认会将修改提交到`main`分支,这意味着此列表可能发生错误。正在商议的解决方案:1. 将默认分支切换为`beta`2. *将代码迁移到`community-beta`(?)* +> 此列表通过[All Contributers](https://allcontributors.org/)实现。