fix: news fetch (#1994)

* fix: fixed news nested qml call

* feat: async proxy bypass
This commit is contained in:
vkamn
2025-11-18 00:21:02 +08:00
committed by GitHub
parent 3d6339e2dd
commit 01ec79b7d5
6 changed files with 228 additions and 42 deletions
+7 -5
View File
@@ -20,10 +20,12 @@ PageType {
PageController.showBusyIndicator(false)
}
function onErrorOccurred(errorCode) {
PageController.showErrorMessage(errorCode)
PageController.closePage()
PageController.showBusyIndicator(false)
function onErrorOccurred(errorCode, showError) {
if (showError) {
PageController.showErrorMessage(errorCode)
PageController.closePage()
PageController.showBusyIndicator(false)
}
}
}
@@ -153,7 +155,7 @@ PageType {
return;
}
PageController.showBusyIndicator(true)
ApiNewsController.fetchNews()
ApiNewsController.fetchNews(true)
PageController.goToPage(PageEnum.PageSettingsNewsNotifications)
}
}