mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:15:15 +00:00
UI: HomeWindow: Simplify onActivationChanged()
This commit is contained in:
parent
a7c1160398
commit
fe5596fab4
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user