Removing background processing limitations; added change detector call to tabs component
This commit is contained in:
parent
9e4ac75a91
commit
b49883f7b2
@ -34,12 +34,13 @@ const createWindow = (startType = "build", debug = false, args = []) => {
|
|||||||
icon: settingsManager.getIconPath(),
|
icon: settingsManager.getIconPath(),
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
|
backgroundThrottling: false,
|
||||||
|
webSecurity: true,
|
||||||
|
sandbox: true,
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
enableRemoteModule: false,
|
enableRemoteModule: false,
|
||||||
plugins: true,
|
plugins: true,
|
||||||
webSecurity: true,
|
|
||||||
sandbox: true,
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
const { app, ipcMain } = require('electron');
|
const { app, ipcMain } = require('electron');
|
||||||
|
|
||||||
|
app.commandLine.appendSwitch('disable-renderer-backgrounding');
|
||||||
|
app.commandLine.appendSwitch('disable-background-timer-throttling');
|
||||||
|
app.commandLine.appendSwitch('disable-backgrounding-occluded-windows');
|
||||||
|
|
||||||
const { newton } = require('./app');
|
const { newton } = require('./app');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let window = null;
|
let window = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const loadHandlers = () => {
|
const loadHandlers = () => {
|
||||||
ipcMain.handle('getLspConfigData', (eve) => newton.fs.getLspConfigData());
|
ipcMain.handle('getLspConfigData', (eve) => newton.fs.getLspConfigData());
|
||||||
ipcMain.handle('getFileContents', (eve, path) => newton.fs.getFileContents(path));
|
ipcMain.handle('getFileContents', (eve, path) => newton.fs.getFileContents(path));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectorRef } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';
|
import { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';
|
||||||
import { Subject, takeUntil } from 'rxjs';
|
import { Subject, takeUntil } from 'rxjs';
|
||||||
@ -34,7 +34,8 @@ export class TabsComponent {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private editorsService: EditorsService,
|
private editorsService: EditorsService,
|
||||||
private tabsService: TabsService
|
private tabsService: TabsService,
|
||||||
|
private changeDetectorRef: ChangeDetectorRef
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +55,8 @@ export class TabsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private createTab(title: string, uuid: string, path: string): void {
|
private createTab(title: string, uuid: string, path: string): void {
|
||||||
this.tabs.push({title: title, path: path, uuid: uuid})
|
this.tabs.push({title: title, path: path, uuid: uuid});
|
||||||
|
this.changeDetectorRef.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleAction(event: any): void {
|
handleAction(event: any): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user