diff --git a/src/logic/application/ApplicationMigrationPreviousToV200alpha1.ts b/src/logic/application/ApplicationMigrationPreviousToV200alpha1.ts index 63c3d42..72b8790 100644 --- a/src/logic/application/ApplicationMigrationPreviousToV200alpha1.ts +++ b/src/logic/application/ApplicationMigrationPreviousToV200alpha1.ts @@ -1,5 +1,6 @@ import ApplicationMigration from "@/logic/application/ApplicationMigration"; import ConfigurationManager from "@/logic/configuration/ConfigurationManager"; +import { app } from "@electron/remote"; /** * The default path of the application that's used for storing custom databases changed in version 2.0.0-alpha.1 of @@ -8,7 +9,7 @@ import ConfigurationManager from "@/logic/configuration/ConfigurationManager"; export default class ApplicationMigrationPreviousToV200alpha1 implements ApplicationMigration { public async upgrade(): Promise { // Reset the configuration back to the default value. - const configManager = new ConfigurationManager(); + const configManager = new ConfigurationManager(app); const defaultConfig = await configManager.getDefaultConfiguration(); await configManager.writeConfiguration(defaultConfig); }