SettingsWindow Loading
- reworked the way we load the settings to avoid using Qt.createComponent which breaks hot reload and more - introduced a new PanelManager singleton to hold some references to some panels and later will be used to force having a single panel opened at all time
This commit is contained in:
parent
0417590221
commit
b3002b42b4
5 changed files with 23 additions and 17 deletions
|
|
@ -12,6 +12,7 @@ import qs.Modules.DemoPanel
|
|||
import qs.Modules.Background
|
||||
import qs.Modules.SidePanel
|
||||
import qs.Modules.Notification
|
||||
import qs.Modules.Settings
|
||||
import qs.Services
|
||||
|
||||
ShellRoot {
|
||||
|
|
@ -38,9 +39,17 @@ ShellRoot {
|
|||
id: calendar
|
||||
}
|
||||
|
||||
SettingsWindow {
|
||||
id: settingsWindow
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
PanelManager.settingsWindow = settingsWindow
|
||||
|
||||
// Ensure our singleton is created as soon as possible
|
||||
// so we start fetching weather asap if necessary
|
||||
Location.init()
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue