Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/settings.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 95 | { | |||
---|---|---|---|---|---|
100 | const bool showPopups = behavior.testFlag(Settings::ShowPopups); | 100 | const bool showPopups = behavior.testFlag(Settings::ShowPopups); | ||
101 | if (showPopups && !group.hasDefault("ShowPopups")) { | 101 | if (showPopups && !group.hasDefault("ShowPopups")) { | ||
102 | group.revertToDefault("ShowPopups", KConfigBase::Notify); | 102 | group.revertToDefault("ShowPopups", KConfigBase::Notify); | ||
103 | } else { | 103 | } else { | ||
104 | group.writeEntry("ShowPopups", showPopups, KConfigBase::Notify); | 104 | group.writeEntry("ShowPopups", showPopups, KConfigBase::Notify); | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | const bool showPopupsInDndMode = behavior.testFlag(Settings::ShowPopupsInDoNotDisturbMode); | 107 | const bool showPopupsInDndMode = behavior.testFlag(Settings::ShowPopupsInDoNotDisturbMode); | ||
108 | if (!showPopupsInDndMode && !group.hasDefault("ShowPopups")) { | 108 | if (!showPopupsInDndMode && !group.hasDefault("ShowPopupsInDndMode")) { | ||
109 | group.revertToDefault("ShowPopupsInDndMode", KConfigBase::Notify); | 109 | group.revertToDefault("ShowPopupsInDndMode", KConfigBase::Notify); | ||
110 | } else { | 110 | } else { | ||
111 | group.writeEntry("ShowPopupsInDndMode", showPopupsInDndMode, KConfigBase::Notify); | 111 | group.writeEntry("ShowPopupsInDndMode", showPopupsInDndMode, KConfigBase::Notify); | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | const bool showInHistory = behavior.testFlag(Settings::ShowInHistory); | 114 | const bool showInHistory = behavior.testFlag(Settings::ShowInHistory); | ||
115 | if (showInHistory && !group.hasDefault("ShowInHistory")) { | 115 | if (showInHistory && !group.hasDefault("ShowInHistory")) { | ||
116 | group.revertToDefault("ShowInHistory", KConfig::Notify); | 116 | group.revertToDefault("ShowInHistory", KConfig::Notify); | ||
▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines |