mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 02:26:00 +00:00
Wallpaper: smarter init
This commit is contained in:
@@ -86,9 +86,14 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// For translations, wait for i18n to be ready
|
||||
translateModels()
|
||||
}
|
||||
|
||||
// -------------------------------------------------
|
||||
function translateModels() {
|
||||
// Wait for i18n to be ready by retrying every time
|
||||
if (!I18n.isLoaded) {
|
||||
Qt.callLater(init)
|
||||
Qt.callLater(translateModels)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user