@ -64,8 +64,8 @@ NightLightManager::NightLightManager()
: QStringLiteral ( " redshift-status-on " ) ;
: QStringLiteral ( " redshift-status-on " ) ;
const QString text = isInhibited ( )
const QString text = isInhibited ( )
? i18nc ( " Night Light was disabled " , " Night Light Off " )
? i18nc ( " Night Light was temporarily disabled " , " Night Light Suspended " )
: i18nc ( " Night Light was enabled " , " Night Light On " ) ;
: i18nc ( " Night Light was re enabled from temporary suspension " , " Night Light Resumed " ) ;
QDBusMessage message = QDBusMessage : : createMethodCall (
QDBusMessage message = QDBusMessage : : createMethodCall (
QStringLiteral ( " org.kde.plasmashell " ) ,
QStringLiteral ( " org.kde.plasmashell " ) ,
@ -86,7 +86,7 @@ NightLightManager::NightLightManager()
QAction * toggleAction = new QAction ( this ) ;
QAction * toggleAction = new QAction ( this ) ;
toggleAction - > setProperty ( " componentName " , QStringLiteral ( " kwin " ) ) ;
toggleAction - > setProperty ( " componentName " , QStringLiteral ( " kwin " ) ) ;
toggleAction - > setObjectName ( QStringLiteral ( " Toggle Night Color " ) ) ;
toggleAction - > setObjectName ( QStringLiteral ( " Toggle Night Color " ) ) ;
toggleAction - > setText ( i18n ( " Toggl e Night Light " ) ) ;
toggleAction - > setText ( i18nc ( " Temp orarily disable/reenable Ni ght Li ght " , " Suspend/Resum e Night Light " ) ) ;
KGlobalAccel : : setGlobalShortcut ( toggleAction , QList < QKeySequence > ( ) ) ;
KGlobalAccel : : setGlobalShortcut ( toggleAction , QList < QKeySequence > ( ) ) ;
connect ( toggleAction , & QAction : : triggered , this , & NightLightManager : : toggle ) ;
connect ( toggleAction , & QAction : : triggered , this , & NightLightManager : : toggle ) ;