Skip to content

Commit 2a50b3c

Browse files
Bug fixed
1. fix the bug of loading show bubble setting 2. update the version number
1 parent 12cf130 commit 2a50b3c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

SNTMConfiguration/MainWindow.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public partial class MainWindow : Window
7676
int loadedDisplaySizeIndex = 0;
7777
int loadedDarkThemeIndex = 0;
7878
bool loadedAutoStartCheck = true;
79+
bool loadedShowBubbleCheck = true;
7980

8081
bool configurationReaded = false;
8182
bool initCompleted = false;
@@ -347,6 +348,8 @@ private void LoadSetting()
347348
loadedDisplaySizeIndex = commonSet.loadedDisplaySizeIndex;
348349
loadedDarkThemeIndex = commonSet.loadedDarkThemeIndex;
349350
loadedAutoStartCheck = commonSet.loadedAutoStartCheck;
351+
loadedShowBubbleCheck = commonSet.loadedShowBubbleCheck;
352+
350353

351354
// set the readed status to true
352355
configurationReaded = true;
@@ -360,7 +363,7 @@ private void LoadSetting()
360363
this.WindowSizeSelectionBox.SelectedIndex = loadedDisplaySizeIndex;
361364
this.DarkThemeSelectionBox.SelectedIndex = loadedDarkThemeIndex;
362365
this.AutoRunCheckBox.IsChecked = loadedAutoStartCheck;
363-
this.ShowBubbleCheckBox.IsChecked = commonSet.loadedShowBubbleCheck;
366+
this.ShowBubbleCheckBox.IsChecked = loadedShowBubbleCheck;
364367

365368
changeLanguages();
366369

@@ -602,6 +605,7 @@ private void ResetButton_Click(object sender, RoutedEventArgs e)
602605
this.DisplaySelectionBox.SelectedIndex = loadedDisplayMethodIndex;
603606
this.WindowSizeSelectionBox.SelectedIndex = loadedDisplaySizeIndex;
604607
this.AutoRunCheckBox.IsChecked = loadedAutoStartCheck;
608+
this.ShowBubbleCheckBox.IsChecked = loadedShowBubbleCheck;
605609
if (this.LanguageSelectionBox.SelectedIndex == 1)
606610
{
607611
MessageBox.Show("設定已重設。");

SNTMStartProcess/About.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SNTMStartProcess/About.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace SNTMStartProcess
3939
{
4040
public partial class About : Form
4141
{
42-
string version = "v1.2.1.0";
42+
string version = "v1.2.2.0";
4343
CommonSet commonSet = new CommonSet();
4444
public About()
4545
{

0 commit comments

Comments
 (0)