plugins/nightcolor: osd: show day icon if appropriate
This commit is contained in:
parent
96e979c736
commit
8e6b1a363f
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ NightColorManager::NightColorManager()
|
||||||
connect(this, &NightColorManager::inhibitedChanged, this, [this] {
|
connect(this, &NightColorManager::inhibitedChanged, this, [this] {
|
||||||
const QString iconName = isInhibited()
|
const QString iconName = isInhibited()
|
||||||
? QStringLiteral("redshift-status-off")
|
? QStringLiteral("redshift-status-off")
|
||||||
: QStringLiteral("redshift-status-on");
|
: m_daylight && m_targetTemperature != DEFAULT_DAY_TEMPERATURE ? QStringLiteral("redshift-status-day")
|
||||||
|
: QStringLiteral("redshift-status-on");
|
||||||
|
|
||||||
const QString text = isInhibited()
|
const QString text = isInhibited()
|
||||||
? i18nc("Night Light was disabled", "Night Light Off")
|
? i18nc("Night Light was disabled", "Night Light Off")
|
||||||
|
|
Loading…
Reference in a new issue