Skip to content

Commit

Permalink
Fix #205 and reload settings from disk when reload option used
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jul 18, 2021
1 parent c93cdb7 commit 965e50f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions applications/launcher/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ ApplicationWindow {
height: screenGeometry.height
title: qsTr("Oxide")
FontLoader { id: iconFont; source: "/font/icomoon.ttf" }
Component.onCompleted:{
stateController.state = "loaded"
controller.startup();
appsView.model = controller.getApps();
onAfterSynchronizing: {
if (stateController.state == "loading") {
stateController.state = "loaded"
controller.startup();
appsView.model = controller.getApps();
}
}
Connections {
target: controller
Expand All @@ -36,7 +38,10 @@ ApplicationWindow {
title: qsTr("");
font: iconFont.name
width: 310
Action { text: qsTr(" Reload"); onTriggered: appsView.model = controller.getApps() }
Action { text: qsTr(" Reload"); onTriggered: {
controller.startup();
appsView.model = controller.getApps();
}}
Action {
text: qsTr(" Import Apps");
onTriggered:{
Expand Down

0 comments on commit 965e50f

Please sign in to comment.