convert Booleans to Ints

This commit is contained in:
Benjamin Halko 2023-09-26 16:46:49 -07:00
parent d9d5b746c3
commit 2250e1bcab
No known key found for this signature in database
GPG Key ID: 790C70040EB331A0

View File

@ -34,16 +34,16 @@ class ExportSettingsViewModel extends BaseViewModel {
final Map<String, dynamic> data = {}; final Map<String, dynamic> data = {};
data['themeMode'] = _managerAPI.getThemeMode(); data['themeMode'] = _managerAPI.getThemeMode();
data['useDynamicTheme'] = _managerAPI.getUseDynamicTheme(); data['useDynamicTheme'] = _managerAPI.getUseDynamicTheme() ? 1 : 0;
data['apiUrl'] = _managerAPI.getApiUrl(); data['apiUrl'] = _managerAPI.getApiUrl();
data['patchesRepo'] = _managerAPI.getPatchesRepo(); data['patchesRepo'] = _managerAPI.getPatchesRepo();
data['integrationsRepo'] = _managerAPI.getIntegrationsRepo(); data['integrationsRepo'] = _managerAPI.getIntegrationsRepo();
data['patchesAutoUpdate'] = _managerAPI.isPatchesAutoUpdate(); data['patchesAutoUpdate'] = _managerAPI.isPatchesAutoUpdate() ? 1 : 0;
data['patchesChangeEnabled'] = _managerAPI.isPatchesChangeEnabled(); data['patchesChangeEnabled'] = _managerAPI.isPatchesChangeEnabled() ? 1 : 0;
data['universalPatchesEnabled'] = _managerAPI.areUniversalPatchesEnabled(); data['universalPatchesEnabled'] = _managerAPI.areUniversalPatchesEnabled() ? 1 : 0;
data['experimentalPatchesEnabled'] = _managerAPI.areExperimentalPatchesEnabled(); data['experimentalPatchesEnabled'] = _managerAPI.areExperimentalPatchesEnabled() ? 1 : 0;
data['keystorePassword'] = _managerAPI.getKeystorePassword(); data['keystorePassword'] = _managerAPI.getKeystorePassword();