From 24c5833726f97b683e27cd7a2bcc0b8fe6fea3ce Mon Sep 17 00:00:00 2001 From: consti10 Date: Wed, 27 Sep 2023 15:36:38 +0200 Subject: [PATCH] status should be first --- qml/ui/configpopup/ConfigPopup.qml | 42 +++++++++---------- .../status/StatusCardBodyOpenHD.qml | 4 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/qml/ui/configpopup/ConfigPopup.qml b/qml/ui/configpopup/ConfigPopup.qml index 538a5489e..48a28465c 100644 --- a/qml/ui/configpopup/ConfigPopup.qml +++ b/qml/ui/configpopup/ConfigPopup.qml @@ -157,22 +157,12 @@ Rectangle { anchors.top: parent.top - // We only need the connect panel on android (external device) - // On localhost, QOpenHD "automatically" connects due to udp localhost method - ConfigPopupSidebarButton{ - visible: m_show_connect_option - id: connect_button - m_icon_text: "\uf6ff" - m_description_text: "Connect" - m_selection_index: 0 - } - // Status ConfigPopupSidebarButton{ id: power m_icon_text: "\uf21e" //"\uf011" m_description_text: "Status" - m_selection_index: 1 + m_selection_index: 0 } // QOpenHD Settings - AppSettingsPanel @@ -180,7 +170,7 @@ Rectangle { id: qopenhd_button m_icon_text: "\uf013" m_description_text: "QOpenHD" - m_selection_index: 2 + m_selection_index: 1 } // OpenHD Settings - MavlinkAllSettingsPanel @@ -188,7 +178,7 @@ Rectangle { id: openhd_button m_icon_text: "\uf085" m_description_text: "OpenHD" - m_selection_index: 3 + m_selection_index: 2 } // Log @@ -196,7 +186,7 @@ Rectangle { id: log_button m_icon_text: "\uf0c9" m_description_text: "Log" - m_selection_index: 4 + m_selection_index: 3 } // RC @@ -204,7 +194,7 @@ Rectangle { id: rc m_icon_text: "\uf11b" m_description_text: "RC" - m_selection_index: 5 + m_selection_index: 4 } @@ -213,7 +203,7 @@ Rectangle { id: credits m_icon_text: "\uf005" m_description_text: "Credits" - m_selection_index: 6 + m_selection_index: 5 } // Developer stats @@ -221,8 +211,19 @@ Rectangle { id: developerstats m_icon_text: "\uf0ad" m_description_text: "DEV" + m_selection_index: 6 + } + + // We only need the connect panel on android (external device) + // On localhost, QOpenHD "automatically" connects due to udp localhost method + ConfigPopupSidebarButton{ + visible: m_show_connect_option + id: connect_button + m_icon_text: "\uf6ff" + m_description_text: "Connect" m_selection_index: 7 } + } } @@ -239,11 +240,7 @@ Rectangle { anchors.topMargin: 0 // default index - currentIndex: m_show_connect_option ? 0 : 1 - - ConnectPanel{ - id: connectPanel - } + currentIndex: 0 PanelStatus { id: statusPanel @@ -272,6 +269,9 @@ Rectangle { AppDeveloperStatsPanel { id: appDeveloperStatsPanel } + ConnectPanel{ + id: connectPanel + } } } diff --git a/qml/ui/configpopup/status/StatusCardBodyOpenHD.qml b/qml/ui/configpopup/status/StatusCardBodyOpenHD.qml index c1db18f19..1b1a5becb 100644 --- a/qml/ui/configpopup/status/StatusCardBodyOpenHD.qml +++ b/qml/ui/configpopup/status/StatusCardBodyOpenHD.qml @@ -23,7 +23,7 @@ ColumnLayout { property string m_version: m_model.openhd_version property string m_last_ping: m_model.last_ping_result_openhd property bool m_is_alive: m_model.is_alive - property string m_qopenhd_version: "TODO" + property string m_qopenhd_version: "2.5.0-beta4X" function get_alive_text(){ return m_is_alive ? "Yes" : "NOT ALIVE !" @@ -74,7 +74,7 @@ ColumnLayout { return ret; } function get_text_openhd_air_ground_version_mismatch(){ - var ret="Your version of OpenHD AIR ["+m_qopenhd_version+"] is incompatible with OpenHD GROUND: ["+_ohdSystemGround.openhd_version+"]"+ + var ret="Your version of OpenHD AIR ["+_ohdSystemAir.openhd_version+"] is incompatible with OpenHD GROUND: ["+_ohdSystemGround.openhd_version+"]"+ "\nPlease update your AIR / GROUND unit."; return ret; }