Displays record name in RecordSyncStatusViewController
This commit is contained in:
parent
483ad69678
commit
935ad9b7c2
@ -86,6 +86,19 @@ private extension RecordSyncStatusViewController
|
||||
{
|
||||
if let record = self.record
|
||||
{
|
||||
var title: String?
|
||||
|
||||
if let recordType = SyncManager.RecordType(rawValue: record.recordID.type)
|
||||
{
|
||||
switch recordType
|
||||
{
|
||||
case .game, .gameSave: title = recordType.localizedName
|
||||
case .cheat, .controllerSkin, .gameCollection, .gameControllerInputMapping, .saveState: break
|
||||
}
|
||||
}
|
||||
|
||||
self.title = title ?? record.localizedName
|
||||
|
||||
self.syncingEnabledSwitch.isEnabled = !record.isConflicted
|
||||
self.syncingEnabledSwitch.isOn = record.isSyncingEnabled
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user