diff --git a/newton/main.js b/newton/main.js index 77bed30..7efbbce 100644 --- a/newton/main.js +++ b/newton/main.js @@ -37,7 +37,7 @@ app.whenReady().then(async () => { newton.ipc.loadIPCServer(); } else { console.log("IPCServer: Is loaded... sending files to existing app."); - await newton.ipc.sendFilesToIPC( + newton.ipc.sendFilesToIPC( newton.args.getArgs() ); app.quit(); diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 69f54d8..be2eaf1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,4 @@ import { Component } from '@angular/core'; -import { RouterOutlet } from '@angular/router'; import { InfoBarComponent } from './editor/info-bar/info-bar.component'; import { TabsComponent } from './editor/tabs/tabs.component'; diff --git a/src/app/app.config.ts b/src/app/app.config.ts index a9af518..16994b6 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,9 +1,7 @@ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; -import { provideRouter } from '@angular/router'; -import { routes } from './app.routes'; import { provideClientHydration, withEventReplay } from '@angular/platform-browser'; export const appConfig: ApplicationConfig = { - providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideClientHydration(withEventReplay())] -}; + providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideClientHydration(withEventReplay())] +}; \ No newline at end of file diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts deleted file mode 100644 index dc39edb..0000000 --- a/src/app/app.routes.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Routes } from '@angular/router'; - -export const routes: Routes = []; diff --git a/src/app/editor/editors.component.ts b/src/app/editor/editors.component.ts index fccfb3c..fe80962 100644 --- a/src/app/editor/editors.component.ts +++ b/src/app/editor/editors.component.ts @@ -144,6 +144,8 @@ export class EditorsComponent { for (let i = 0; i < paths.length; i++) { let file = new File([], "") as NewtonFile; + if ( this.filesService.get(paths[i]) ) continue; + await this.filesService.addFile(paths[i], file); this.filesService.addTab(file); }