Skip to content

Commit

Permalink
有对话框处于打开状态时,不执行每5分钟总是置顶操作
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Feb 10, 2025
1 parent 9d62bfb commit 78cc528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrafficMonitor/TrafficMonitorDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ void CTrafficMonitorDlg::OnTimer(UINT_PTR nIDEvent)
}
}

if (m_timer_cnt % 300 == 299 && !theApp.m_cfg_data.m_hide_main_window && theApp.m_main_wnd_data.m_always_on_top)
if (m_timer_cnt % 300 == 299 && CBaseDialog::IsAllDialogClosed() && !theApp.m_cfg_data.m_hide_main_window && theApp.m_main_wnd_data.m_always_on_top)
{
SetAlwaysOnTop(); //每5分钟执行一次设置窗口置顶
}
Expand Down

0 comments on commit 78cc528

Please sign in to comment.