From 63cee258846abcd1976875eb68399b7a1b73cb38 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 14 Jul 2021 10:36:25 +0800 Subject: [PATCH] Hide bookmarks icon when showing lan server --- src/states_screens/online/server_selection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/states_screens/online/server_selection.cpp b/src/states_screens/online/server_selection.cpp index 16a1b008b..5a5d9cd30 100644 --- a/src/states_screens/online/server_selection.cpp +++ b/src/states_screens/online/server_selection.cpp @@ -138,7 +138,10 @@ void ServerSelection::beforeAddingWidget() m_server_list_widget->addColumn(_C("column_name", "Owner"), 3); // I18N: In server selection screen, distance to server m_server_list_widget->addColumn(_C("column_name", "Distance (km)"), 3); + m_bookmark_widget->setVisible(true); } + else + m_bookmark_widget->setVisible(false); } // beforeAddingWidget // ---------------------------------------------------------------------------- @@ -520,7 +523,7 @@ void ServerSelection::updateHeader() { m_bookmark_widget->setImage(g_bookmarks_next ? m_global_icon : m_bookmark_icon); - if (g_bookmarks_next) + if (g_bookmarks_next && NetworkConfig::get()->isWAN()) getWidget("title_header")->setText(_("Server Bookmarks")); else getWidget("title_header")->setText(_("Server Selection"));