Fixed persisting lastSelectedExportFolder also on iOS

This commit is contained in:
dankito 2020-10-28 15:37:40 +01:00
parent d42bc2e58d
commit d4f582914a
2 changed files with 6 additions and 2 deletions

View File

@ -38,6 +38,7 @@
</entity> </entity>
<entity name="PersistedAppSettings" representedClassName="PersistedAppSettings" syncable="YES" codeGenerationType="class"> <entity name="PersistedAppSettings" representedClassName="PersistedAppSettings" syncable="YES" codeGenerationType="class">
<attribute name="automaticallyUpdateAccountsAfterMinutes" optional="YES" attributeType="Integer 32" defaultValueString="360" usesScalarValueType="NO"/> <attribute name="automaticallyUpdateAccountsAfterMinutes" optional="YES" attributeType="Integer 32" defaultValueString="360" usesScalarValueType="NO"/>
<attribute name="lastSelectedExportFolder" optional="YES" attributeType="String"/>
<attribute name="lockAppAfterMinutes" optional="YES" attributeType="Integer 32" defaultValueString="-1" usesScalarValueType="NO"/> <attribute name="lockAppAfterMinutes" optional="YES" attributeType="Integer 32" defaultValueString="-1" usesScalarValueType="NO"/>
<attribute name="screenshotsAllowed" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/> <attribute name="screenshotsAllowed" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
<relationship name="flickerCodeSettings" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="PersistedTanMethodSettings"/> <relationship name="flickerCodeSettings" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="PersistedTanMethodSettings"/>
@ -109,7 +110,7 @@
</entity> </entity>
<elements> <elements>
<element name="PersistedAccountTransaction" positionX="-36" positionY="45" width="128" height="553"/> <element name="PersistedAccountTransaction" positionX="-36" positionY="45" width="128" height="553"/>
<element name="PersistedAppSettings" positionX="-45" positionY="144" width="128" height="133"/> <element name="PersistedAppSettings" positionX="-45" positionY="144" width="128" height="148"/>
<element name="PersistedBankAccount" positionX="-54" positionY="63" width="128" height="418"/> <element name="PersistedBankAccount" positionX="-54" positionY="63" width="128" height="418"/>
<element name="PersistedBankData" positionX="-63" positionY="-18" width="128" height="298"/> <element name="PersistedBankData" positionX="-63" positionY="-18" width="128" height="298"/>
<element name="PersistedTanMedium" positionX="-45" positionY="144" width="128" height="28"/> <element name="PersistedTanMedium" positionX="-45" positionY="144" width="128" height="28"/>

View File

@ -324,7 +324,8 @@ class Mapper {
screenshotsAllowed: settings.screenshotsAllowed, screenshotsAllowed: settings.screenshotsAllowed,
flickerCodeSettings: map(settings.flickerCodeSettings), flickerCodeSettings: map(settings.flickerCodeSettings),
qrCodeSettings: map(settings.qrCodeSettings), qrCodeSettings: map(settings.qrCodeSettings),
photoTanSettings: map(settings.photoTanSettings)) photoTanSettings: map(settings.photoTanSettings),
lastSelectedExportFolder: settings.lastSelectedExportFolder)
mapped.technicalId = settings.objectIDAsString mapped.technicalId = settings.objectIDAsString
@ -342,6 +343,8 @@ class Mapper {
mapped.qrCodeSettings = map(settings.qrCodeSettings, context) mapped.qrCodeSettings = map(settings.qrCodeSettings, context)
mapped.photoTanSettings = map(settings.photoTanSettings, context) mapped.photoTanSettings = map(settings.photoTanSettings, context)
mapped.lastSelectedExportFolder = settings.lastSelectedExportFolder
return mapped return mapped
} }