mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
new window button in menu
This commit is contained in:
parent
561f9c2211
commit
8c74105cfe
3 changed files with 18 additions and 14 deletions
|
@ -75,7 +75,7 @@ if (process.env.ANYTYPE_USE_SIDE_SERVER) {
|
|||
function waitForLibraryAndCreateWindows () {
|
||||
waitLibraryPromise.then((res) => {
|
||||
global.serverAddr = Server.getAddress();
|
||||
createMainWindow();
|
||||
createWindow();
|
||||
}, (err) => {
|
||||
electron.dialog.showErrorBox('Error: failed to run server', err.toString());
|
||||
});
|
||||
|
@ -87,7 +87,7 @@ nativeTheme.on('updated', () => {
|
|||
WindowManager.updateTheme();
|
||||
});
|
||||
|
||||
function createMainWindow () {
|
||||
function createWindow () {
|
||||
mainWindow = WindowManager.createMain({ withState: true, route: Util.getRouteFromUrl(deeplinkingUrl), isChild: false });
|
||||
|
||||
if (process.env.ELECTRON_DEV_EXTENSIONS) {
|
||||
|
@ -180,7 +180,7 @@ app.on('before-quit', (e) => {
|
|||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
WindowManager.list.size ? mainWindow.show() : createMainWindow();
|
||||
WindowManager.list.size ? mainWindow.show() : createWindow();
|
||||
});
|
||||
|
||||
app.on('open-url', (e, url) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue