Преглед изворни кода

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana пре 2 година
родитељ
комит
2f3fb1a5d9
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 1 1
      Widget/Dashboard/DashboardWidgetView.swift
  2. 3 1
      iOSClient/AppDelegate.swift

+ 1 - 1
Widget/Dashboard/DashboardWidgetView.swift

@@ -105,7 +105,7 @@ struct DashboardWidgetView: View {
                 .padding(.top, 35)
                 .redacted(reason: entry.isPlaceholder ? .placeholder : [])
 
-                if let tableButton = entry.tableButton, !tableButton.isEmpty {
+                if let tableButton = entry.tableButton, !tableButton.isEmpty, !entry.isPlaceholder {
                     
                     HStack(spacing: 10) {
 

+ 3 - 1
iOSClient/AppDelegate.swift

@@ -373,7 +373,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             task.setTaskCompleted(success: true)
             return
         }
-        
+
+        NKCommon.shared.setup(delegate: NCNetworking.shared)
         NKCommon.shared.writeLog("[INFO] Start handler refresh task [Auto upload]")
         
         NCAutoUpload.shared.initAutoUpload(viewController: nil) { items in
@@ -390,6 +391,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             return
         }
 
+        NKCommon.shared.setup(delegate: NCNetworking.shared)
         NKCommon.shared.writeLog("[INFO] Start handler processing task [Reload widget]")
 
         WidgetCenter.shared.reloadAllTimelines()