UI: HomeWindow: Simplify onActivationChanged()

This commit is contained in:
Nodir Temirkhodjaev 2024-01-09 15:19:22 +03:00
parent a7c1160398
commit fe5596fab4

View File

@ -1,6 +1,5 @@
#include "homewindow.h"
#include <QApplication>
#include <QGuiApplication>
#include <QLabel>
#include <QPushButton>
@ -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();
}
}
}