1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

Insta fallback

This commit is contained in:
bbedward
2025-10-08 13:41:37 -04:00
parent 41ba76e2e2
commit ad43ca11eb
2 changed files with 25 additions and 27 deletions

View File

@@ -151,20 +151,6 @@ Singleton {
Component.onCompleted: {
Qt.callLater(initializeDMSConnection)
fallbackCheckTimer.start()
}
Timer {
id: fallbackCheckTimer
interval: 1000
running: false
onTriggered: {
if (!freedeskAvailable) {
console.log("PortalService: DMS not available, using fallback methods")
checkAccountsServiceFallback()
checkSettingsPortalFallback()
}
}
}
function initializeDMSConnection() {
@@ -175,10 +161,23 @@ Singleton {
dmsService.service.capabilitiesChanged.connect(onDMSCapabilitiesChanged)
if (dmsService.service.isConnected) {
onDMSConnected()
} else {
Qt.callLater(checkFallback)
}
} else {
Qt.callLater(checkFallback)
}
} catch (e) {
console.warn("PortalService: Failed to initialize DMS connection:", e)
Qt.callLater(checkFallback)
}
}
function checkFallback() {
if (!freedeskAvailable) {
console.log("PortalService: DMS not available, using fallback methods")
checkAccountsServiceFallback()
checkSettingsPortalFallback()
}
}