Allow reseting notifications

This commit is contained in:
Jan Dalheimer 2014-03-15 14:35:35 +01:00
parent 4f452d5815
commit 55e4cb6fb5
2 changed files with 15 additions and 0 deletions

View File

@ -308,6 +308,11 @@ void SettingsDialog::applySettings(SettingsObject *s)
s->set("Language", s->set("Language",
ui->languageBox->itemData(ui->languageBox->currentIndex()).toLocale().bcp47Name()); ui->languageBox->itemData(ui->languageBox->currentIndex()).toLocale().bcp47Name());
if (ui->resetNotificationsBtn->isChecked())
{
s->set("ShownNotifications", QString());
}
// Updates // Updates
s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked()); s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked());
s->set("UpdateChannel", m_currentUpdateChannel); s->set("UpdateChannel", m_currentUpdateChannel);

View File

@ -284,6 +284,16 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QPushButton" name="resetNotificationsBtn">
<property name="text">
<string>Reset hidden notifications</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="sortingModeBox"> <widget class="QGroupBox" name="sortingModeBox">
<property name="enabled"> <property name="enabled">