Removed router parts; fixed duplicate file loads
This commit is contained in:
parent
b49883f7b2
commit
64a6e14840
@ -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();
|
||||
|
@ -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';
|
||||
|
@ -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())]
|
||||
};
|
@ -1,3 +0,0 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
export const routes: Routes = [];
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user