Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Nov 23, 2024
1 parent 7955b3b commit abc737e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ The options listed here are not editable from within the user interface.
# it will be redacted from the logs.
# default is no password
# lock_password: example_password

# enable_lock:
# Enable or disable the lockscreen feature
```

!!! tip
Expand Down
2 changes: 1 addition & 1 deletion panels/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, screen, title):
self.main = Gtk.Grid(row_homogeneous=True, column_homogeneous=True)
self.main.attach(restart_ks, 1, 0, 1, 1)

if screen._config.get_main_config().getboolean("enable_lock", True):
if screen._config.get_main_config().getboolean("enable_lock", False):
lock_screen = self._gtk.Button("lock", _("Lock"), "color3")
lock_screen.connect("clicked", self._screen.lock_screen.lock)

Expand Down

0 comments on commit abc737e

Please sign in to comment.