Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
42bf8b77
Commit
42bf8b77
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Display a toast when preferences are changed
parent
06b725d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cutecoin/gui/preferences.py
+3
-0
3 additions, 0 deletions
src/cutecoin/gui/preferences.py
with
3 additions
and
0 deletions
src/cutecoin/gui/preferences.py
+
3
−
0
View file @
42bf8b77
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment