Skip to content
Snippets Groups Projects
Commit 42bf8b77 authored by inso's avatar inso
Browse files

Display a toast when preferences are changed

parent 06b725d2
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ Created on 11 mai 2015 ...@@ -7,6 +7,7 @@ Created on 11 mai 2015
from PyQt5.QtCore import QCoreApplication from PyQt5.QtCore import QCoreApplication
from ..core.account import Account from ..core.account import Account
from . import toast
from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QDialog
from ..gen_resources.preferences_uic import Ui_PreferencesDialog from ..gen_resources.preferences_uic import Ui_PreferencesDialog
...@@ -41,6 +42,8 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog): ...@@ -41,6 +42,8 @@ class PreferencesDialog(QDialog, Ui_PreferencesDialog):
'lang': self.combo_language.currentText(), 'lang': self.combo_language.currentText(),
'ref': self.combo_referential.currentIndex()} 'ref': self.combo_referential.currentIndex()}
self.app.save_preferences(pref) self.app.save_preferences(pref)
toast.display(self.tr("Preferences"),
self.tr("A restart is needed to apply your new preferences."))
super().accept() super().accept()
def reject(self): def reject(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment