File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ public FrmMain(string[] args)
60
60
_languageManager . LoadLanguage ( Properties . Settings . Default . Language ) ;
61
61
}
62
62
LanguageSwitch ( ) ;
63
+
64
+ nfiTray . Visible = Properties . Settings . Default . ShowNotifyIcon ;
65
+ if ( Properties . Settings . Default . RememberFormSize )
66
+ {
67
+ Size = Properties . Settings . Default . FormSize ;
68
+ }
63
69
}
64
70
catch ( Exception ex )
65
71
{
@@ -248,19 +254,6 @@ private void LoadTheme()
248
254
private void FrmMain_Load ( object sender , EventArgs e )
249
255
{
250
256
versionStaticBarItem . Text += " " + Application . ProductVersion ;
251
- try
252
- {
253
- nfiTray . Visible = Properties . Settings . Default . ShowNotifyIcon ;
254
- if ( Properties . Settings . Default . RememberFormSize )
255
- {
256
- Size = Properties . Settings . Default . FormSize ;
257
- CenterToScreen ( ) ;
258
- }
259
- }
260
- catch ( Exception ex )
261
- {
262
- MessageBoxAdv . Show ( ex . Message , "DeadLock" , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
263
- }
264
257
}
265
258
266
259
private void aboutBarItem_Click ( object sender , EventArgs e )
You can’t perform that action at this time.
0 commit comments