32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 70d2c46fb369b4905be2d71c9f3cb581d83f2ddd Mon Sep 17 00:00:00 2001
|
|
From: peijiankang <peijiankang@kylinos.cn>
|
|
Date: Tue, 31 Jan 2023 17:30:13 +0800
|
|
Subject: [PATCH] fix nightnode button nodisplay
|
|
|
|
---
|
|
plugin-nightmode/nightmode.cpp | 8 --------
|
|
1 file changed, 8 deletions(-)
|
|
|
|
diff --git a/plugin-nightmode/nightmode.cpp b/plugin-nightmode/nightmode.cpp
|
|
index 827bb02..a833b50 100644
|
|
--- a/plugin-nightmode/nightmode.cpp
|
|
+++ b/plugin-nightmode/nightmode.cpp
|
|
@@ -115,14 +115,6 @@ NightModeButton::NightModeButton( IUKUIPanelPlugin *plugin, QWidget* parent):
|
|
m_gtkstyleGsettings = new QGSettings(gtkstyleid);
|
|
}
|
|
|
|
- QDBusInterface iproperty("org.ukui.KWin",
|
|
- "/ColorCorrect",
|
|
- "org.ukui.kwin.ColorCorrect",
|
|
- QDBusConnection::sessionBus());
|
|
-
|
|
- if (!iproperty.isValid()) {
|
|
- this->setVisible(false);
|
|
- }
|
|
QDBusConnection::sessionBus().connect(QString(),
|
|
QString("/ColorCorrect"),
|
|
"org.ukui.kwin.ColorCorrect",
|
|
--
|
|
2.33.0
|
|
|