diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp --- a/kcmkwin/kwindecoration/kcm.cpp +++ b/kcmkwin/kwindecoration/kcm.cpp @@ -116,8 +116,7 @@ // Update the themes when the color scheme or a theme's settings change QDBusConnection::sessionBus() .connect(QString(), QStringLiteral("/KWin"), QStringLiteral("org.kde.KWin"), QStringLiteral("reloadConfig"), - this, - SLOT(reloadKWinSettings())); + this, SLOT(reloadKWinSettings())); QMetaObject::invokeMethod(m_themesModel, "init", Qt::QueuedConnection); } @@ -141,6 +140,8 @@ m_newStuffDialog->windowHandle()->setTransientParent(context->window()); } + connect(m_newStuffDialog, &QDialog::finished, this, &KCMKWinDecoration::reloadKWinSettings); + m_newStuffDialog->show(); } diff --git a/kcmkwin/kwindecoration/window-decorations.knsrc b/kcmkwin/kwindecoration/window-decorations.knsrc --- a/kcmkwin/kwindecoration/window-decorations.knsrc +++ b/kcmkwin/kwindecoration/window-decorations.knsrc @@ -61,7 +61,6 @@ Name[zh_TW]=視窗裝飾 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml -Categories=Various Plasma Styles,Aurorae Themes -TargetDir=themes -StandardResource=tmp +Categories=Window Decoration Aurorae +TargetDir=aurorae/themes Uncompress=archive