Skip to content

Commit 7d46843

Browse files
committed
fix(plasmoid): register type in the ctor
After upstream change required.
1 parent 47a0c6c commit 7d46843

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plasma-integration/plasmoid/kdisplay_applet.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@ KDisplayApplet::KDisplayApplet(QObject* parent,
4242
const QVariantList& args)
4343
: Plasma::Applet(parent, data, args)
4444
{
45+
qmlRegisterUncreatableType<KDisplay::OsdAction>(
46+
"org.kwinft.private.kdisplay", 1, 0, "OsdAction", QStringLiteral("Can't create OsdAction"));
4547
}
4648

4749
KDisplayApplet::~KDisplayApplet() = default;
4850

4951
void KDisplayApplet::init()
5052
{
51-
qmlRegisterUncreatableType<KDisplay::OsdAction>(
52-
"org.kwinft.private.kdisplay", 1, 0, "OsdAction", QStringLiteral("Can't create OsdAction"));
53-
5453
connect(new Disman::GetConfigOperation,
5554
&Disman::ConfigOperation::finished,
5655
this,

0 commit comments

Comments
 (0)