[d-feet: 4/7] DFeetWindow: switch to the added bus watch



commit fc1ad7466c03192073197edb3dd5eddbc3fcbf20
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Thu Mar 26 23:13:29 2020 +0100

    DFeetWindow: switch to the added bus watch
    
    This will avoid having to switch manually after entering the address.
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 src/dfeet/window.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/dfeet/window.py b/src/dfeet/window.py
index 2a91a23..01b6032 100644
--- a/src/dfeet/window.py
+++ b/src/dfeet/window.py
@@ -152,6 +152,7 @@ class DFeetWindow(Gtk.ApplicationWindow):
         try:
             bw = BusWatch(self.data_dir, address)
             self.stack.add_titled(bw.box_bus, address, address)
+            self.stack.set_visible_child_name(address)
             # Fill history
             if address in self.bus_history:
                 self.bus_history.remove(address)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]