Skip to content

Commit

Permalink
hide FC shutdown button
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotnbr1 committed Dec 10, 2023
1 parent fabb364 commit 29db36b
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

1 comment on commit 29db36b

@pilotnbr1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch hides the shutdown button for the FC. It should not affect the shutdown buttons of the air/ground OHD systems but is not tested.

Please sign in to comment.