Commit 31dcf51c authored by Valerio Pilo's avatar Valerio Pilo

[kcmkwin/kwindecoration] Fix Get Hot New Stuff

Summary:
Found better categories for GHNS v3: looks like only Aurorae is supported?

Also refresh the themes when you close the GHNS window, in case something was downloaded.

Test Plan: Open GHNS, download new theme, close GHNS -> new theme visible

Reviewers: leinir, graesslin, #kwin, davidedmundson

Reviewed By: leinir, #kwin, davidedmundson

Subscribers: ngraham, cfeck, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18935
parent 5fa18646
......@@ -116,8 +116,7 @@ KCMKWinDecoration::KCMKWinDecoration(QObject *parent, const QVariantList &argume
// 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 @@ void KCMKWinDecoration::getNewStuff(QQuickItem *context)
m_newStuffDialog->windowHandle()->setTransientParent(context->window());
}
connect(m_newStuffDialog, &QDialog::finished, this, &KCMKWinDecoration::reloadKWinSettings);
m_newStuffDialog->show();
}
......
......@@ -61,7 +61,6 @@ Name[zh_CN]=窗口装饰
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment