summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-03-15 14:35:35 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-03-15 14:35:35 +0100
commit55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4 (patch)
treeffcae1288c16358fbd7aaf6031bfe94a84db0d52 /gui
parent4f452d5815e14043f3c0977673bf338491032520 (diff)
downloadMultiMC-55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4.tar
MultiMC-55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4.tar.gz
MultiMC-55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4.tar.lz
MultiMC-55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4.tar.xz
MultiMC-55e4cb6fb5ea59958ac0bc386b9df06476c1ddb4.zip
Allow reseting notifications
Diffstat (limited to 'gui')
-rw-r--r--gui/dialogs/SettingsDialog.cpp5
-rw-r--r--gui/dialogs/SettingsDialog.ui10
2 files changed, 15 insertions, 0 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp
index d79bb558..7ec48336 100644
--- a/gui/dialogs/SettingsDialog.cpp
+++ b/gui/dialogs/SettingsDialog.cpp
@@ -308,6 +308,11 @@ void SettingsDialog::applySettings(SettingsObject *s)
s->set("Language",
ui->languageBox->itemData(ui->languageBox->currentIndex()).toLocale().bcp47Name());
+ if (ui->resetNotificationsBtn->isChecked())
+ {
+ s->set("ShownNotifications", QString());
+ }
+
// Updates
s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked());
s->set("UpdateChannel", m_currentUpdateChannel);
diff --git a/gui/dialogs/SettingsDialog.ui b/gui/dialogs/SettingsDialog.ui
index e8da8582..74ed68d2 100644
--- a/gui/dialogs/SettingsDialog.ui
+++ b/gui/dialogs/SettingsDialog.ui
@@ -285,6 +285,16 @@
</layout>
</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>
<widget class="QGroupBox" name="sortingModeBox">
<property name="enabled">
<bool>true</bool>