MP Lobby: removed Refresh button

I'm not 100% sure about this change, but I think its presence was rather confusing and
it (hopefully) shouldn't ever be needed.

(cherry-picked from commit fe10bc0315)
This commit is contained in:
Charles Dang 2018-05-06 16:50:02 +11:00
parent f6c9458b72
commit 650121a8de
2 changed files with 12 additions and 37 deletions

View file

@ -437,31 +437,22 @@
#define _GUI_CONTROL_AREA
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_grow = true
[button]
id = "quit"
definition = "large"
label = _ "Log Out"
[/button]
[/column]
[/row]
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
border = "all"
border_size = 5
[button]
id = "quit"
definition = "large"
label = _ "Log Out"
[/button]
[/column]
[column]
border = "all"
border_size = 5
[button]
id = "refresh"
definition = "large"
label = _ "Refresh"
[/button]
[/column]
[/row]
[row]
@ -591,18 +582,6 @@
[/label]
[/column]
[column]
grow_factor = 0
border = "left,right,top"
horizontal_alignment = "right"
border_size = 5
[button]
id = "refresh"
definition = "default"
label = _ "Refresh"
[/button]
[/column]
[column]
grow_factor = 0
horizontal_alignment = "right"

View file

@ -747,10 +747,6 @@ void mp_lobby::pre_show(window& window)
find_widget<button>(&window, "create", false).set_retval(CREATE);
connect_signal_mouse_left_click(
find_widget<button>(&window, "refresh", false),
std::bind(&mp_lobby::refresh_lobby, this));
connect_signal_mouse_left_click(
find_widget<button>(&window, "show_preferences", false),
std::bind(&mp_lobby::show_preferences_button_callback, this, std::ref(window)));