Added option to remove read messages on exit.
This commit is contained in:
parent
898a8eb6f3
commit
ee6e40fbbb
@ -188,11 +188,12 @@ void FormMain::onAboutToQuit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
qDebug("Cleaning up resources and saving application state.");
|
qDebug("Cleaning up resources and saving application state.");
|
||||||
|
|
||||||
m_ui->m_tabWidget->feedMessageViewer()->quitDownloader();
|
m_ui->m_tabWidget->feedMessageViewer()->quitDownloader();
|
||||||
|
|
||||||
// TODO: podle nastaveni
|
if (Settings::instance()->value(APP_CFG_MESSAGES, "clear_read_on_exit", false).toBool()) {
|
||||||
m_ui->m_tabWidget->feedMessageViewer()->feedsView()->clearAllReadMessages();
|
m_ui->m_tabWidget->feedMessageViewer()->feedsView()->clearAllReadMessages();
|
||||||
|
}
|
||||||
|
|
||||||
DatabaseFactory::instance()->saveMemoryDatabase();
|
DatabaseFactory::instance()->saveMemoryDatabase();
|
||||||
saveSize();
|
saveSize();
|
||||||
}
|
}
|
||||||
|
@ -153,9 +153,11 @@ void FormSettings::selectBrowserExecutable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FormSettings::loadFeedsMessages() {
|
void FormSettings::loadFeedsMessages() {
|
||||||
|
m_ui->m_checkRemoveReadMessagesOnExit->setChecked(Settings::instance()->value(APP_CFG_MESSAGES, "clear_read_on_exit", false).toBool());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormSettings::saveFeedsMessages() {
|
void FormSettings::saveFeedsMessages() {
|
||||||
|
Settings::instance()->setValue(APP_CFG_MESSAGES, "clear_read_on_exit", m_ui->m_checkRemoveReadMessagesOnExit->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormSettings::displayProxyPassword(int state) {
|
void FormSettings::displayProxyPassword(int state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user