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.");
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
DatabaseFactory::instance()->saveMemoryDatabase();
|
||||
saveSize();
|
||||
}
|
||||
|
@ -153,9 +153,11 @@ void FormSettings::selectBrowserExecutable() {
|
||||
}
|
||||
|
||||
void FormSettings::loadFeedsMessages() {
|
||||
m_ui->m_checkRemoveReadMessagesOnExit->setChecked(Settings::instance()->value(APP_CFG_MESSAGES, "clear_read_on_exit", false).toBool());
|
||||
}
|
||||
|
||||
void FormSettings::saveFeedsMessages() {
|
||||
Settings::instance()->setValue(APP_CFG_MESSAGES, "clear_read_on_exit", m_ui->m_checkRemoveReadMessagesOnExit->isChecked());
|
||||
}
|
||||
|
||||
void FormSettings::displayProxyPassword(int state) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user