Re-enable data import

This commit is contained in:
Flashfyre 2024-02-08 20:53:03 -05:00
parent 0fe4d02b87
commit d07b007567

View File

@ -79,25 +79,21 @@ export default class MenuUiHandler extends MessageUiHandler {
const manageDataOptions = []; const manageDataOptions = [];
if (bypassLogin) {
manageDataOptions.push({ manageDataOptions.push({
label: 'Import Session', label: 'Import Session',
handler: () => this.scene.gameData.importData(GameDataType.SESSION), handler: () => this.scene.gameData.importData(GameDataType.SESSION),
keepOpen: true keepOpen: true
}); });
}
manageDataOptions.push({ manageDataOptions.push({
label: 'Export Session', label: 'Export Session',
handler: () => this.scene.gameData.exportData(GameDataType.SESSION), handler: () => this.scene.gameData.exportData(GameDataType.SESSION),
keepOpen: true keepOpen: true
}); });
if (bypassLogin) {
manageDataOptions.push({ manageDataOptions.push({
label: 'Import Data', label: 'Import Data',
handler: () => this.scene.gameData.importData(GameDataType.SYSTEM), handler: () => this.scene.gameData.importData(GameDataType.SYSTEM),
keepOpen: true keepOpen: true
}); });
}
manageDataOptions.push( manageDataOptions.push(
{ {
label: 'Export Data', label: 'Export Data',