Allow reseting notifications
This commit is contained in:
parent
4f452d5815
commit
55e4cb6fb5
@ -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);
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user