Launcher: if user has favorites defined, show them.
Suggested by Henning, that if the user has defined favorite aircraft, default to that tab. Will pick to 2020.2 once verified.
This commit is contained in:
parent
59a7d50fb1
commit
7d7b7b3bd1
1 changed files with 8 additions and 2 deletions
|
@ -17,8 +17,16 @@ FocusScope
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state: "installed"
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
_launcher.browseAircraftModel.loadRatingsSettings();
|
_launcher.browseAircraftModel.loadRatingsSettings();
|
||||||
|
|
||||||
|
// if the user has favourites defined, default to that tab
|
||||||
|
if (_launcher.favouriteAircraftModel.count > 0) {
|
||||||
|
root.state = "favourites"
|
||||||
|
root.updateSelectionFromLauncher();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
@ -188,8 +196,6 @@ FocusScope
|
||||||
visible: (root.state == "updates") && (_launcher.aircraftWithUpdatesModel.count == 0)
|
visible: (root.state == "updates") && (_launcher.aircraftWithUpdatesModel.count == 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
state: "installed"
|
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "installed"
|
name: "installed"
|
||||||
|
|
Loading…
Add table
Reference in a new issue