From 5a8f3a770f994b5aee3f7618cbfc81aac4127b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 27 Jul 2023 11:31:48 +0800 Subject: [PATCH] Fixes --- ApplicationLibrary/Views/Groups/GroupListView.swift | 1 + ApplicationLibrary/Views/Profile/NewProfileView.swift | 2 +- Library/Shared/ServiceNotification.swift | 1 - .../sekai.xcuserdatad/xcschemes/xcschememanagement.plist | 6 +++--- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ApplicationLibrary/Views/Groups/GroupListView.swift b/ApplicationLibrary/Views/Groups/GroupListView.swift index ffe161b..7d0ed44 100644 --- a/ApplicationLibrary/Views/Groups/GroupListView.swift +++ b/ApplicationLibrary/Views/Groups/GroupListView.swift @@ -31,6 +31,7 @@ public struct GroupListView: View { Text("Empty groups") } } + .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center) .onAppear(perform: doReload) .onDisappear { connectTask?.cancel() diff --git a/ApplicationLibrary/Views/Profile/NewProfileView.swift b/ApplicationLibrary/Views/Profile/NewProfileView.swift index 0702b26..fe7a4d0 100644 --- a/ApplicationLibrary/Views/Profile/NewProfileView.swift +++ b/ApplicationLibrary/Views/Profile/NewProfileView.swift @@ -216,6 +216,6 @@ public struct NewProfileView: View { remoteURL = remotePath lastUpdated = .now } - try ProfileManager.create(Profile(name: profileName, type: profileType, path: savePath, remoteURL: remoteURL)) + try ProfileManager.create(Profile(name: profileName, type: profileType, path: savePath, remoteURL: remoteURL, lastUpdated: lastUpdated)) } } diff --git a/Library/Shared/ServiceNotification.swift b/Library/Shared/ServiceNotification.swift index 5c97e1c..2c0107f 100644 --- a/Library/Shared/ServiceNotification.swift +++ b/Library/Shared/ServiceNotification.swift @@ -34,7 +34,6 @@ public enum ServiceNotification { private class Delegate: NSObject, UNUserNotificationCenterDelegate { func userNotificationCenter(_: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions { - NSLog("userNotificationCenter") if let listener = ServiceNotification.listener { listener(notification.request.content) return [] diff --git a/sing-box.xcodeproj/xcuserdata/sekai.xcuserdatad/xcschemes/xcschememanagement.plist b/sing-box.xcodeproj/xcuserdata/sekai.xcuserdatad/xcschemes/xcschememanagement.plist index 5f857fe..03cfbf9 100644 --- a/sing-box.xcodeproj/xcuserdata/sekai.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/sing-box.xcodeproj/xcuserdata/sekai.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ ApplicationLibrary.xcscheme_^#shared#^_ orderHint - 3 + 5 Associations (Playground) 1.xcscheme @@ -69,7 +69,7 @@ MacLibrary.xcscheme_^#shared#^_ orderHint - 5 + 2 MessageExtension.xcscheme_^#shared#^_ @@ -141,7 +141,7 @@ SystemExtension.xcscheme_^#shared#^_ orderHint - 2 + 3 Test.xcscheme_^#shared#^_