Skip to content

Commit

Permalink
Center FC Reboot button
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotnbr1 committed Dec 10, 2023
1 parent 29db36b commit 3851b9a
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 @@ -56,7 +56,11 @@ Item {
//visible: get_show_power_actions()
Button{
visible: get_show_power_actions() && m_supports_reboot_actions
Layout.alignment: Qt.AlignLeft
Layout.alignment: {if (m_supports_shutdown_actions == false)
return Qt.AlignCenter
else
return Qt.Align.Right
}
Layout.leftMargin: 10
text: qsTr("REBOOT")
onPressed: {
Expand Down

1 comment on commit 3851b9a

@pilotnbr1
Copy link
Contributor

Choose a reason for hiding this comment

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

Tested in SITL only. So needs testing with air/ground buttons

Please sign in to comment.