fix: changed App Group name to fit the requirements. It fixes widgets in macOS 15 but could break macOS 14. Since in the macOS 14 it was not working properly with the team ID prefix (#2115)

This commit is contained in:
Serhiy Mytrovtsiy
2024-09-28 19:58:42 +02:00
parent 109bc416b9
commit 97e00dcc82
11 changed files with 18 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ open class Module {
get { Store.shared.int(key: "\(self.name)_position", defaultValue: 0) }
set { Store.shared.set(key: "\(self.name)_position", value: newValue) }
}
public var userDefaults: UserDefaults? = UserDefaults(suiteName: "eu.exelban.Stats.widgets")
public var userDefaults: UserDefaults? = UserDefaults(suiteName: "\(Bundle.main.object(forInfoDictionaryKey: "TeamId") as! String).eu.exelban.Stats.widgets")
private var settingsView: Settings_v? = nil
private var popup: PopupWindow? = nil