|
@@ -270,9 +270,9 @@ class NCService: NSObject {
|
|
|
|
|
|
private func requestDashboardWidget() {
|
|
private func requestDashboardWidget() {
|
|
|
|
|
|
- //let options = NKRequestOptions(queue: NKCommon.shared.backgroundQueue)
|
|
|
|
|
|
+ let options = NKRequestOptions(queue: NKCommon.shared.backgroundQueue)
|
|
|
|
|
|
- NextcloudKit.shared.getDashboardWidget() { account, dashboardWidgets, data, error in
|
|
|
|
|
|
+ NextcloudKit.shared.getDashboardWidget(options: options) { account, dashboardWidgets, data, error in
|
|
if error == .success, let dashboardWidgets = dashboardWidgets {
|
|
if error == .success, let dashboardWidgets = dashboardWidgets {
|
|
NCManageDatabase.shared.addDasboardWidget(account: account, dashboardWidgets: dashboardWidgets)
|
|
NCManageDatabase.shared.addDasboardWidget(account: account, dashboardWidgets: dashboardWidgets)
|
|
for widget in dashboardWidgets {
|
|
for widget in dashboardWidgets {
|