mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 14:07:01 +09:00
merge
This commit is contained in:
commit
bd72da4759
190 changed files with 6971 additions and 3511 deletions
|
@ -1,4 +1,5 @@
|
|||
const { app, shell, BrowserWindow } = require('electron');
|
||||
const { is } = require('electron-util');
|
||||
const keytar = require('keytar');
|
||||
const { download } = require('electron-dl');
|
||||
|
||||
|
@ -122,7 +123,7 @@ class Api {
|
|||
};
|
||||
|
||||
updateConfirm (win) {
|
||||
this.exit(win, true);
|
||||
this.exit(win, '', true);
|
||||
};
|
||||
|
||||
updateCancel (win) {
|
||||
|
@ -191,6 +192,12 @@ class Api {
|
|||
this.setConfig(win, { languages });
|
||||
};
|
||||
|
||||
setBadge (win, t) {
|
||||
if (is.macos) {
|
||||
app.dock.setBadge(t);
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
module.exports = new Api();
|
Loading…
Add table
Add a link
Reference in a new issue