Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tails
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
952
Issues
952
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tails
tails
Commits
6bd43b5f
Commit
6bd43b5f
authored
Jun 18, 2020
by
segfault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix popover broken if setting set before loading from persistence (refs: #17136)
parent
9060cb03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/main_window.py
.../lib/python3/dist-packages/tailsgreeter/ui/main_window.py
+14
-2
No files found.
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/main_window.py
View file @
6bd43b5f
...
...
@@ -217,9 +217,17 @@ class GreeterMainWindow(Gtk.Window, TranslatableWindow):
# We only add the setting to the list of additional settings
# if it was actually changed. Else it is either already added or
# it has the default value.
if
changed
:
if
not
changed
:
continue
settings_loaded
=
True
# Add the setting to the listbox of added settings, if it was
# not added before (by the user, before unlocking perrsistence).
if
self
.
setting_added
(
setting
.
id
):
# The setting was already added, we only have to call apply()
# to update the label
setting
.
apply
()
else
:
self
.
add_setting
(
setting
.
id
)
settings_loaded
=
True
except
SettingNotFoundError
as
e
:
logging
.
debug
(
e
)
# The settings file does not exist, so we create it by
...
...
@@ -266,6 +274,10 @@ class GreeterMainWindow(Gtk.Window, TranslatableWindow):
else
:
self
.
run_add_setting_dialog
(
id_
)
def
setting_added
(
self
,
id_
):
setting
=
self
.
settings
.
additional_settings
[
id_
]
return
setting
.
listboxrow
in
self
.
listbox_settings
.
get_children
()
def
show
(
self
):
super
().
show
()
self
.
button_start
.
grab_focus
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment