Release 0.1.37 deployment prep
This commit is contained in:
+17
-18
@@ -18,7 +18,7 @@ sys.path.insert(0, "/usr/local/lib/ekklesia-classroom")
|
||||
import classroom_style as style # noqa: E402
|
||||
from classroom_config import ( # noqa: E402
|
||||
SHELL_SCALE,
|
||||
enabled,
|
||||
dock_items,
|
||||
read_device_config,
|
||||
scaled,
|
||||
)
|
||||
@@ -311,6 +311,8 @@ class ClassroomShell(Gtk.Window):
|
||||
)
|
||||
dock.get_style_context().add_class("dock")
|
||||
|
||||
items = dock_items(self.config)
|
||||
|
||||
dock.pack_start(
|
||||
self.make_button(
|
||||
"browser",
|
||||
@@ -322,11 +324,7 @@ class ClassroomShell(Gtk.Window):
|
||||
0,
|
||||
)
|
||||
|
||||
if enabled(
|
||||
self.config,
|
||||
"DVD_ENABLED",
|
||||
False,
|
||||
):
|
||||
if "dvd" in items:
|
||||
dock.pack_start(
|
||||
self.make_button(
|
||||
"dvd",
|
||||
@@ -342,19 +340,20 @@ class ClassroomShell(Gtk.Window):
|
||||
|
||||
self.start_disc_watch()
|
||||
|
||||
dock.pack_start(
|
||||
self.make_button(
|
||||
"sanctuary",
|
||||
self.sanctuary_icon(),
|
||||
lambda *_: notify(
|
||||
"Sanctuary",
|
||||
"Sanctuary live view is being prepared.",
|
||||
if "live" in items:
|
||||
dock.pack_start(
|
||||
self.make_button(
|
||||
"sanctuary",
|
||||
self.sanctuary_icon(),
|
||||
lambda *_: notify(
|
||||
"Sanctuary",
|
||||
"Sanctuary live view is being prepared.",
|
||||
),
|
||||
),
|
||||
),
|
||||
False,
|
||||
False,
|
||||
0,
|
||||
)
|
||||
False,
|
||||
False,
|
||||
0,
|
||||
)
|
||||
|
||||
return dock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user