mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 12:27:32 +01:00
Make persistentIdentifier iOS only for now.
This commit is contained in:
parent
4a9e79cd1e
commit
9de3caf3a0
@ -31,7 +31,9 @@ class ActivityManager {
|
||||
}
|
||||
|
||||
let activity = NSUserActivity(activityType: ActivityType.restoration.rawValue)
|
||||
#if os(iOS)
|
||||
activity.persistentIdentifier = UUID().uuidString
|
||||
#endif
|
||||
activity.becomeCurrent()
|
||||
return activity
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user