mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 04:16:08 -04:00
Make sure the error window is actually shown
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
3
piper.py
3
piper.py
@@ -19,6 +19,7 @@ class Piper(Gtk.Window):
|
||||
error.set_text(message)
|
||||
|
||||
self.add(box)
|
||||
self.show()
|
||||
|
||||
def __init__(self):
|
||||
Gtk.Window.__init__(self, title="Piper")
|
||||
@@ -110,7 +111,7 @@ class Piper(Gtk.Window):
|
||||
try:
|
||||
ratbag = Ratbag()
|
||||
except RatbagDBusUnavailable:
|
||||
return None
|
||||
ratbag = None
|
||||
|
||||
if ratbag == None:
|
||||
self._show_error("Can't connect to ratbagd on DBus. That's quite unfortunate.")
|
||||
|
||||
Reference in New Issue
Block a user