diff --git a/src/ui/form/home/homewindow.cpp b/src/ui/form/home/homewindow.cpp index cb0bbbb6..098683f1 100644 --- a/src/ui/form/home/homewindow.cpp +++ b/src/ui/form/home/homewindow.cpp @@ -1,6 +1,5 @@ #include "homewindow.h" -#include #include #include #include @@ -93,8 +92,10 @@ void HomeWindow::selectAboutTab() void HomeWindow::onActivationChanged(bool isActive) { - if (isActive && iniUser()->homeAutoShowMenu() && this == QApplication::activeWindow()) { - m_btMenu->showMenu(); + if (isActive && iniUser()->homeAutoShowMenu()) { + if (isActiveWindow()) { + m_btMenu->showMenu(); + } } }