From c63a281d7474983d874ad78044f328ca34b61c6b Mon Sep 17 00:00:00 2001 From: indiff Date: Wed, 28 Feb 2024 14:10:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E6=97=B6=E5=99=A8=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QTTabBar/QTTabBarClass.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/QTTabBar/QTTabBarClass.cs b/QTTabBar/QTTabBarClass.cs index 0e5700d..407f613 100644 --- a/QTTabBar/QTTabBarClass.cs +++ b/QTTabBar/QTTabBarClass.cs @@ -2569,7 +2569,7 @@ private void DoFirstNavigation(bool before, string path) { } /** - * 定时器方式来获取微信或者qq打开后的选中文件 + * 计时器间隔 1 秒方式来获取微信或者qq打开后的选中文件 */ private void Wait4Select() { @@ -2580,12 +2580,14 @@ private void Wait4Select() QTUtility2.log("Wait4Select"); int count = 1; + // 自关闭 计时器间隔 1 秒 Timer timer = new Timer { Interval = 1000 }; timer.Tick += (sender, args) => { try { count++; + // 超过次数10次 自关闭 if (count >= 10) { timer.Stop(); @@ -2696,14 +2698,6 @@ private void Wait4SelectedQuit() WindowUtils.CloseExplorer(ExplorerHandle, 0); } - - /*if (list.Count > 0) - QTUtility2.log("set dict " + tabItem.CurrentPath); - InstanceManager.selectDict.Add(tabItem.CurrentPath, list); - timer.Stop(); - Explorer.Quit(); - WindowUtils.CloseExplorer(ExplorerHandle, 0); - }*/ } } } @@ -4673,7 +4667,9 @@ private void InitializeSysMenu(bool fText) { contextMenuSys.Items[0].Dispose(); contextMenuSys.Items.AddRange(new ToolStripItem[] { - tsmiGroups, tsmiUndoClose, tsmiLastActiv, tsmiExecuted, tssep_Sys1, tsmiBrowseFolder, tsmiCloseAllButCurrent, tsmiCloseWindow, tsmiMergeWindows, tsmiLockToolbar, tssep_Sys2, tsmiOption + tsmiGroups, tsmiUndoClose, tsmiLastActiv, tsmiExecuted, + tssep_Sys1, tsmiBrowseFolder, tsmiCloseAllButCurrent, tsmiCloseWindow, + tsmiMergeWindows, tsmiLockToolbar, tssep_Sys2, tsmiOption }); }