File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ void WayfireNetworkInfo::init(Gtk::HBox *container)
360360 }
361361
362362 container->add (button);
363-
364363 button.add (button_content);
365364 button.get_style_context ()->add_class (" flat" );
366365
@@ -377,7 +376,7 @@ void WayfireNetworkInfo::init(Gtk::HBox *container)
377376 sigc::mem_fun (this , &WayfireNetworkInfo::update_icon));
378377
379378 update_active_connection ();
380- button. show_all ();
379+ handle_config_reload ();
381380}
382381
383382void WayfireNetworkInfo::handle_config_reload ()
@@ -393,9 +392,13 @@ void WayfireNetworkInfo::handle_config_reload()
393392 {
394393 if (status.get_parent ())
395394 button_content.remove (status);
396- } else {
395+ } else
396+ {
397397 if (!status.get_parent ())
398+ {
398399 button_content.pack_start (status);
400+ button_content.show_all ();
401+ }
399402 }
400403
401404 update_icon ();
You can’t perform that action at this time.
0 commit comments