@@ -31,13 +31,13 @@ public partial class MainWindowViewModel : ObservableObject, ICultureInfoChanged
3131 private readonly Lock _fullScreenModeLock = new ( ) ;
3232
3333 [ ObservableProperty ]
34- private string _mainWindowTitle = null ! ;
34+ public partial string MainWindowTitle { get ; set ; } = null ! ;
3535
3636 [ ObservableProperty ]
37- private string _currentLocalFile = null ! ;
37+ public partial string CurrentLocalFile { get ; set ; } = null ! ;
3838
3939 [ ObservableProperty ]
40- private string _showNestingMenuItemHeader = null ! ;
40+ public partial string ShowNestingMenuItemHeader { get ; set ; } = null ! ;
4141
4242 public MainWindowViewModel ( Settings settings , UndoManager undoManager , ClipboardHelper clipboardHelper ,
4343 UpdateManager updateManager )
@@ -58,60 +58,60 @@ public MainWindowViewModel(Settings settings, UndoManager undoManager, Clipboard
5858 public List < EditorModeLocalized > AllEditModes { get ; } = EditorModeLocalized . GetValues ( ) ;
5959
6060 [ ObservableProperty ]
61- private EditorMode _textEditorMode ;
61+ public partial EditorMode TextEditorMode { get ; set ; }
6262
6363 public List < FontTypeLocalized > AllFontTypes { get ; } = FontTypeLocalized . GetValues ( ) ;
6464
6565 [ ObservableProperty ]
66- private FontType _textFontType ;
66+ public partial FontType TextFontType { get ; set ; }
6767
6868 [ ObservableProperty ]
69- private bool _inputBold ;
69+ public partial bool InputBold { get ; set ; }
7070
7171 [ ObservableProperty ]
72- private bool _inputItalic ;
72+ public partial bool InputItalic { get ; set ; }
7373
7474 [ ObservableProperty ]
75- private bool _inputUnderline ;
75+ public partial bool InputUnderline { get ; set ; }
7676
7777 [ ObservableProperty ]
78- private bool _isSelecting ;
78+ public partial bool IsSelecting { get ; set ; }
7979
8080 [ ObservableProperty ]
81- private bool _useItalicIntergalOnNew ;
81+ public partial bool UseItalicIntergalOnNew { get ; set ; }
8282
8383 [ ObservableProperty ]
84- private bool _showUnderbar = true ;
84+ public partial bool ShowUnderbar { get ; set ; } = true ;
8585
8686 [ ObservableProperty ]
87- private string _statusBarLeftMessage = string . Empty ;
87+ public partial string StatusBarLeftMessage { get ; set ; } = string . Empty ;
8888
8989 [ ObservableProperty ]
90- private string _statusBarRightMessage = string . Empty ;
90+ public partial string StatusBarRightMessage { get ; set ; } = string . Empty ;
9191
9292 [ ObservableProperty ]
93- private int _activeChildSelectionStartIndex = 0 ;
93+ public partial int ActiveChildSelectionStartIndex { get ; set ; } = 0 ;
9494
9595 [ ObservableProperty ]
96- private int _activeChildSelectedItems = 0 ;
96+ public partial int ActiveChildSelectedItems { get ; set ; } = 0 ;
9797
9898 [ ObservableProperty ]
99- private bool _fullScreenMode = false ;
99+ public partial bool FullScreenMode { get ; set ; } = false ;
100100
101101 [ ObservableProperty ]
102- private string _fullScreenMenuItemHeader = null ! ;
102+ public partial string FullScreenMenuItemHeader { get ; set ; } = null ! ;
103103
104104 [ ObservableProperty ]
105- private bool _fullScreenButtonVisible = false ;
105+ public partial bool FullScreenButtonVisible { get ; set ; } = false ;
106106
107107 [ ObservableProperty ]
108- private int _customZoomPercentage = 0 ;
108+ public partial int CustomZoomPercentage { get ; set ; } = 0 ;
109109
110110 [ ObservableProperty ]
111- private bool _customZoomMenuChecked = false ;
111+ public partial bool CustomZoomMenuChecked { get ; set ; } = false ;
112112
113113 [ ObservableProperty ]
114- private string _customZoomMenuHeader = null ! ;
114+ public partial string CustomZoomMenuHeader { get ; set ; } = null ! ;
115115
116116 public bool IgnoreTextEditorModeChange { get ; set ; } = false ;
117117 public bool IgnoreTextFontTypeChange { get ; set ; } = false ;
@@ -450,7 +450,8 @@ await MessageBox.ShowAsync(Localize.MainWindow_UpToDate(), Localize.MainWindow_C
450450 return ;
451451 }
452452
453- var updateResult = await MessageBox . ShowAsync ( Localize . MainWindow_NewVersionAvailable ( newVersion . BaseRelease ? . Version ) ,
453+ var updateResult = await MessageBox . ShowAsync (
454+ Localize . MainWindow_NewVersionAvailable ( newVersion . BaseRelease ? . Version . ToString ( ) ?? Localize . MainWindow_Unknown ( ) ) ,
454455 Localize . MainWindow_CheckForUpdates ( ) , MessageBoxButton . YesNo , MessageBoxImage . Question ) ;
455456 if ( updateResult == MessageBoxResult . Yes )
456457 {
0 commit comments