|
|
@ -119,6 +119,7 @@ TopLevel::~TopLevel()
|
|
|
|
void TopLevel::load() {
|
|
|
|
void TopLevel::load() {
|
|
|
|
KConfig* config = KGlobal::instance()->config();
|
|
|
|
KConfig* config = KGlobal::instance()->config();
|
|
|
|
config->setGroup(NULL);
|
|
|
|
config->setGroup(NULL);
|
|
|
|
|
|
|
|
autostart = config->readBoolEntry("Autostart", true);
|
|
|
|
notifyExpiry = config->readBoolEntry("notifyExpiry", true);
|
|
|
|
notifyExpiry = config->readBoolEntry("notifyExpiry", true);
|
|
|
|
notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5);
|
|
|
|
notifyExpiryMinutes = config->readNumEntry("notifyExpiryMinutes", 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -126,6 +127,7 @@ void TopLevel::load() {
|
|
|
|
void TopLevel::save() {
|
|
|
|
void TopLevel::save() {
|
|
|
|
KConfig* config = KGlobal::instance()->config();
|
|
|
|
KConfig* config = KGlobal::instance()->config();
|
|
|
|
config->setGroup(NULL);
|
|
|
|
config->setGroup(NULL);
|
|
|
|
|
|
|
|
config->writeEntry("Autostart", autostart);
|
|
|
|
config->writeEntry("notifyExpiry", notifyExpiry);
|
|
|
|
config->writeEntry("notifyExpiry", notifyExpiry);
|
|
|
|
config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes);
|
|
|
|
config->writeEntry("notifyExpiryMinutes", notifyExpiryMinutes);
|
|
|
|
config->sync();
|
|
|
|
config->sync();
|
|
|
|