Skip to content

Commit

Permalink
merge shutdown "fix" (#632)
Browse files Browse the repository at this point in the history
* Untested Fix to GND Bat cell voltage

* hide FC shutdown button

---------

Co-authored-by: pilotnbr1 <pilotnbr1@hotmail.com>
  • Loading branch information
raphaelscholle and pilotnbr1 authored Dec 10, 2023
1 parent d9adbf8 commit 01e2746
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qml/ui/configpopup/status/FooterRebootShutdownWarning.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ Item {


property bool m_supports_reboot_actions: true
//m_supports_shutdown_actions added due to testers reporting FC does not shutdown
property bool m_supports_shutdown_actions: true

function get_show_power_actions(){
if(m_type==0){
return _ohdSystemGround.is_alive
}else if(m_type==1){
return _ohdSystemAir.is_alive
}
//hide FC shutdown button
m_supports_shutdown_actions=false
return _fcMavlinkSystem.is_alive
}

Expand Down Expand Up @@ -60,7 +64,7 @@ Item {
}
}
Button{
visible: get_show_power_actions() && m_supports_reboot_actions
visible: get_show_power_actions() && m_supports_shutdown_actions
Layout.alignment: Qt.AlignRight
Layout.rightMargin: 10
text: qsTr("SHUTDOWN")
Expand Down

0 comments on commit 01e2746

Please sign in to comment.