fix bug:125714

This commit is contained in:
jzxc95 2022-09-26 14:04:43 +08:00
parent 10dacdcccd
commit 600060210d
1 changed files with 13 additions and 3 deletions

View File

@ -43,6 +43,10 @@
const QString v10Sp1 = "V10SP1";
const QString intel = "V10SP1-edu";
#define LANPAGE 0
#define WLANPAGE 1
#define AUTOSELET 2
#define KEY_PRODUCT_FEATURES "PRODUCT_FEATURES"
#include <kwindowsystem.h>
@ -645,11 +649,17 @@ void MainWindow::onTabletModeChanged(bool mode)
void MainWindow::onShowMainWindow(int type)
{
if (type == LANPAGE || type == WLANPAGE) {
m_centralWidget->setCurrentIndex(type);
if(QApplication::activeWindow() != this) {
this->showMainwindow();
}
} else if (type == AUTOSELET) {
onTrayIconActivated(QSystemTrayIcon::ActivationReason::Trigger);
} else {
qWarning() << "unsupport parameter";
}
}
void MainWindow::onConnectivityChanged(NetworkManager::Connectivity connectivity)