display server url in the sites drop down to easily identify site
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ add_executable(ezremote_client
|
||||
|
||||
add_self(ezremote_client)
|
||||
|
||||
add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.28" 32 0)
|
||||
add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.29" 32 0)
|
||||
|
||||
target_link_libraries(ezremote_client
|
||||
c
|
||||
|
||||
+3
-1
@@ -327,11 +327,13 @@ namespace Windows
|
||||
if (ImGui::BeginCombo("##Site", display_site, ImGuiComboFlags_PopupAlignLeft | ImGuiComboFlags_HeightLargest | ImGuiComboFlags_NoArrowButton))
|
||||
{
|
||||
static char site_id[64];
|
||||
static char site_display[512];
|
||||
for (int n = 0; n < sites.size(); n++)
|
||||
{
|
||||
const bool is_selected = strcmp(sites[n].c_str(), last_site) == 0;
|
||||
sprintf(site_id, "%s %d", lang_strings[STR_SITE], n + 1);
|
||||
if (ImGui::Selectable(site_id, is_selected))
|
||||
sprintf(site_display, "%s %d - %s", lang_strings[STR_SITE], n + 1, site_settings[sites[n]].server);
|
||||
if (ImGui::Selectable(site_display, is_selected))
|
||||
{
|
||||
sprintf(last_site, "%s", sites[n].c_str());
|
||||
sprintf(display_site, "%s", site_id);
|
||||
|
||||
Reference in New Issue
Block a user