Commit 22c5735 tom-englert
committed
1 parent ee91a37 commit 22c5735 Copy full SHA for 22c5735
File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -418,17 +418,22 @@ void ShowAssemblyList(AssemblyList assemblyList)
418
418
419
419
Root = assemblyListTreeNode ;
420
420
421
+ var mainWindow = Application . Current ? . MainWindow ;
422
+
423
+ if ( mainWindow == null )
424
+ return ;
425
+
421
426
if ( assemblyList . ListName == AssemblyListManager . DefaultListName )
422
427
#if DEBUG
423
- this . Title = $ "ILSpy { DecompilerVersionInfo . FullVersion } ";
428
+ mainWindow . Title = $ "ILSpy { DecompilerVersionInfo . FullVersion } ";
424
429
#else
425
- this . Title = "ILSpy" ;
430
+ mainWindow . Title = "ILSpy" ;
426
431
#endif
427
432
else
428
433
#if DEBUG
429
- this . Title = $ "ILSpy { DecompilerVersionInfo . FullVersion } - " + assemblyList . ListName ;
434
+ mainWindow . Title = $ "ILSpy { DecompilerVersionInfo . FullVersion } - " + assemblyList . ListName ;
430
435
#else
431
- this . Title = "ILSpy - " + assemblyList . ListName ;
436
+ mainWindow . Title = "ILSpy - " + assemblyList . ListName ;
432
437
#endif
433
438
}
434
439
You can’t perform that action at this time.
0 commit comments