Skip to content

Commit

Permalink
Fix app state when closing GPS info pane (#2733)
Browse files Browse the repository at this point in the history
Co-authored-by: Lubos <[email protected]>
  • Loading branch information
iiLubos and Lubos authored Jul 25, 2023
1 parent b583afc commit d558cc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,18 @@ ApplicationWindow {
Loader {
id: gpsDataPageLoader

property string lastState
property string lastMapState

asynchronous: true
active: false
focus: true
sourceComponent: gpsDataPageComponent
onActiveChanged: {
if ( gpsDataPageLoader.active )
{
lastState = stateManager.state
lastMapState = map.state
formsStackManager.closeDrawer();

if ( stakeoutPanelLoader.active )
Expand All @@ -466,6 +471,8 @@ ApplicationWindow {
// user closed GPS panel and we are in stakeout mode - reopen stakeout panel
stakeoutPanelLoader.item.restore()
}
stateManager.state = lastState
map.state = lastMapState
}
}
}
Expand Down

1 comment on commit d558cc5

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

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

iOS - version 23.07.441211 just submitted!

Please sign in to comment.