This commit is contained in:
Eugene Pankov 2019-08-07 15:31:21 +02:00
parent 924a8da2f5
commit a8eb0d8346
5 changed files with 8 additions and 8 deletions

View File

@ -222,7 +222,7 @@ export class AppService {
} }
} }
for (const tab of this.tabs) { for (const tab of this.tabs) {
tab.destroy(true); tab.destroy(true)
} }
return true return true
} }

View File

@ -148,7 +148,7 @@ export class HostAppService {
} else if (op === 'profile') { } else if (op === 'profile') {
this.cliOpenProfile.next(argv.profileName) this.cliOpenProfile.next(argv.profileName)
} else if (op === undefined) { } else if (op === undefined) {
this.newWindow(); this.newWindow()
} else { } else {
this.secondInstance.next() this.secondInstance.next()
} }

View File

@ -100,7 +100,7 @@ export class SettingsTabComponent extends BaseTabComponent {
} }
async getRecoveryToken (): Promise<any> { async getRecoveryToken (): Promise<any> {
return false; return null
} }
ngOnDestroy () { ngOnDestroy () {

View File

@ -92,12 +92,12 @@ export class XTermFrontend extends Frontend {
let o = window.getComputedStyle(this.xtermCore.element) let o = window.getComputedStyle(this.xtermCore.element)
let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom"))) let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom")))
let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth
let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9; let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9
let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17; let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17
let cols = Math.floor(l / actualCellWidth) let cols = Math.floor(l / actualCellWidth)
let rows = Math.floor(i / actualCellHeight); let rows = Math.floor(i / actualCellHeight)
this.xterm.resize(cols, rows); this.xterm.resize(cols, rows)
} }
} catch (e) { } catch (e) {
// tends to throw when element wasn't shown yet // tends to throw when element wasn't shown yet

View File

@ -157,7 +157,7 @@ export default class TerminalModule { // eslint-disable-line @typescript-eslint/
}) })
if (config.store.terminal.autoOpen) { if (config.store.terminal.autoOpen) {
let argv = require('electron').remote.process.argv; let argv = require('electron').remote.process.argv
if (argv[0].includes('node')) { if (argv[0].includes('node')) {
argv = argv.slice(1) argv = argv.slice(1)
} }