fix(ui): 网络菜单二级窗口无图标

Description: 网络菜单二级窗口无图标

Log: 网络菜单二级窗口无图标
Bug: https://pm.kylin.com/bug-view-230664.html
This commit is contained in:
李享 2024-07-08 17:03:20 +08:00
parent 97679e86e8
commit d6ecb7faae
3 changed files with 11 additions and 1 deletions

View File

@ -1141,6 +1141,9 @@ void MainWindow::showCreateWiredConnectWidget(const QString devName)
netDetail->show();
KWindowSystem::raiseWindow(netDetail->winId());
netDetail->centerToScreen();
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
}
void MainWindow::showAddOtherWlanWidget(QString devName)

View File

@ -34,7 +34,8 @@
#define ITEM_HEIGHT 48
#define LOG_FLAG "[LanPage]"
#include "windowmanager/windowmanager.h"
using namespace kdk;
const QString EMPTY_CONNECT_UUID = "emptyconnect";
const QString WIRED_SWITCH = "wiredswitch";
@ -1288,6 +1289,9 @@ void LanPage::showDetailPage(QString devName, QString uuid)
netDetail->show();
KWindowSystem::raiseWindow(netDetail->winId());
netDetail->centerToScreen();
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
connect(netDetail, &NetDetail::detailPageClose, [&](QString deviceName, QString lanName, QString lanUuid){
if (lanUuid.isEmpty()) {

View File

@ -1651,6 +1651,9 @@ void WlanPage::showDetailPage(QString devName, QString ssid)
netDetail->show();
KWindowSystem::raiseWindow(netDetail->winId());
netDetail->centerToScreen();
kdk::WindowManager::setSkipSwitcher(netDetail->windowHandle(), true);
kdk::WindowManager::setSkipTaskBar(netDetail->windowHandle(), true);
kdk::WindowManager::setIconName(netDetail->windowHandle(), "kylin-network");
return;
}