浏览代码

set default widget build 14

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父节点
当前提交
059c1b0f32
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Widget/Dashboard/DashboardData.swift

+ 2 - 3
Widget/Dashboard/DashboardData.swift

@@ -90,9 +90,8 @@ func getDashboardDataEntry(intent: Applications?, isPreview: Bool, displaySize:
         return completion(DashboardDataEntry(date: Date(), datas: datasPlaceholder, tableDashboard: nil, tableButton: nil, isPlaceholder: true, titleImage: UIImage(named: "widget")!, title: "Dashboard", footerImage: "xmark.icloud", footerText: NSLocalizedString("_no_active_account_", comment: "")))
     }
 
-    guard let id = intent?.identifier else {
-        return completion(DashboardDataEntry(date: Date(), datas: datasPlaceholder, tableDashboard: nil, tableButton: nil, isPlaceholder: true, titleImage: UIImage(named: "widget")!, title: "Dashboard", footerImage: "xmark.icloud", footerText: NSLocalizedString("_no_data_available_", comment: "")))
-    }
+    // Default widget: recommendations
+    let id: String = intent?.identifier ?? "recommendations"
 
     let serverVersionMajor = NCManageDatabase.shared.getCapabilitiesServerInt(account: account.account, elements: NCElementsJSON.shared.capabilitiesVersionMajor)