解决BUG 103843,【网络】切换主题,添加网络或者网络详情左上角的网络图标没有变化

This commit is contained in:
chenxuechao 2022-09-21 09:58:40 +08:00
parent 069e9e5b2c
commit 592507830b
2 changed files with 1 additions and 2 deletions

View File

@ -371,8 +371,6 @@ void NetDetail::initUI()
forgetBtn = new QPushButton(this); forgetBtn = new QPushButton(this);
forgetBtn->setText(tr("Forget this network")); forgetBtn->setText(tr("Forget this network"));
this->setWindowIcon(QIcon::fromTheme("kylin-network"));
QVBoxLayout *centerlayout = new QVBoxLayout(centerWidget); QVBoxLayout *centerlayout = new QVBoxLayout(centerWidget);
centerlayout->setContentsMargins(CENTER_LAYOUT_MARGINS); centerlayout->setContentsMargins(CENTER_LAYOUT_MARGINS);
centerlayout->addWidget(pageFrame); centerlayout->addWidget(pageFrame);

View File

@ -151,6 +151,7 @@ int main(int argc, char *argv[])
MainWindow w; MainWindow w;
a.setActivationWindow(&w); a.setActivationWindow(&w);
w.setProperty("useStyleWindowManager", false); //禁用拖动 w.setProperty("useStyleWindowManager", false); //禁用拖动
a.setWindowIcon(QIcon::fromTheme("kylin-network"));
//设置窗口无边框,阴影 //设置窗口无边框,阴影
// MotifWmHints window_hints; // MotifWmHints window_hints;