@@ -7416,6 +7416,9 @@ public bool HideExplorer
7416
7416
protected ToolStripDropDownButton buttonNavHistoryMenu ;
7417
7417
protected IntPtr TravelToolBarHandle ;
7418
7418
7419
+ /**
7420
+ * 添加到历史目录
7421
+ */
7419
7422
protected void AddToHistory ( QTabItem closingTab )
7420
7423
{
7421
7424
string currentPath = closingTab . CurrentPath ;
@@ -7426,6 +7429,7 @@ protected void AddToHistory(QTabItem closingTab)
7426
7429
currentPath = currentPath + "???" + closingTab . GetLogHash ( true , 0 ) ;
7427
7430
}
7428
7431
StaticReg . ClosedTabHistoryList . Add ( currentPath ) ;
7432
+ // windows 11 ,有可能调用 WindowsUtil.close 方法导致报错
7429
7433
InstanceManager . ButtonBarBroadcast ( bbar => bbar . RefreshButtons ( ) , true ) ;
7430
7434
}
7431
7435
}
@@ -7555,12 +7559,15 @@ protected void ShowMessageNavCanceled(string failedPath, bool fModal)
7555
7559
{
7556
7560
QTUtility2 . log ( "QTTabBarClass ShowMessageNavCanceled: " + failedPath ) ;
7557
7561
QTUtility2 . MakeErrorLog ( null , string . Format ( "Failed navigation: {0}" , failedPath ) ) ;
7558
- MessageForm . Show ( ExplorerHandle ,
7559
- string . Format ( QTUtility . TextResourcesDic [ "TabBar_Message" ] [ 0 ] , failedPath ) ,
7560
- string . Empty ,
7561
- MessageBoxIcon . Asterisk ,
7562
- 0x2710 ,
7563
- fModal ) ;
7562
+ if ( Config . Window . ShowFailNavMsg )
7563
+ {
7564
+ MessageForm . Show ( ExplorerHandle ,
7565
+ string . Format ( QTUtility . TextResourcesDic [ "TabBar_Message" ] [ 0 ] , failedPath ) ,
7566
+ string . Empty ,
7567
+ MessageBoxIcon . Asterisk ,
7568
+ 0x2710 ,
7569
+ fModal ) ;
7570
+ }
7564
7571
}
7565
7572
7566
7573
protected void CancelFailedTabChanging ( string newPath )
0 commit comments