Skip to content

Commit

Permalink
Merge pull request #1264 from Li-Pro/master
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell authored Dec 16, 2023
2 parents 9d523b4 + 8fe1c12 commit 13764b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/main/services/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const MIGRATIONS: Array<ConfigMigration> = [
[
"startInBackground",
(config: Config) => {
if (typeof config.preferences["startInBackground"] === "boolean") {
if (
config.preferences &&
typeof config.preferences["startInBackground"] === "boolean"
) {
const prefs = { ...config.preferences };
prefs.startMode = config.preferences["startInBackground"]
? AppStartMode.HiddenAlways
Expand Down

0 comments on commit 13764b3

Please sign in to comment.