Skip to content

Commit d9ddc43

Browse files
committed
network: handle status options at startup
1 parent e589436 commit d9ddc43

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/panel/widgets/network.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

383382
void 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();

0 commit comments

Comments
 (0)