Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Jan 15, 2024
1 parent 4e1b5f2 commit f1bb1ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main/services/upgrade-service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dialog } from "electron";
import { MessageBoxOptions, dialog } from "electron";

import { Eventable } from "@/base/event";
import { createDecorator } from "@/base/injection/injection";
Expand Down Expand Up @@ -40,7 +40,7 @@ export class UpgradeService extends Eventable<IUpgradeServiceState> {
title: "A new version of Paperlib is available",
message: "A new version of Paperlib is available",
detail: "It is downloading and will notify you when it is ready.",
};
} as MessageBoxOptions;
await dialog.showMessageBox(dialogOpts);
});

Expand Down Expand Up @@ -69,7 +69,7 @@ export class UpgradeService extends Eventable<IUpgradeServiceState> {
title: `A new version ${info.version} of Paperlib is automatically downloaded.`,
message: `A new version ${info.version} of Paperlib is automatically downloaded.`,
detail: `${info.releaseNotes}`,
};
} as MessageBoxOptions;

const response = await dialog.showMessageBox(dialogOpts);
if (response.response === 0) {
Expand Down

0 comments on commit f1bb1ab

Please sign in to comment.