mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-25 01:26:08 +00:00
lint
This commit is contained in:
@@ -64,7 +64,7 @@ export class Application {
|
|||||||
return window
|
return window
|
||||||
}
|
}
|
||||||
|
|
||||||
onGlobalHotkey () {
|
onGlobalHotkey (): void {
|
||||||
if (this.windows.some(x => x.isFocused())) {
|
if (this.windows.some(x => x.isFocused())) {
|
||||||
for (let window of this.windows) {
|
for (let window of this.windows) {
|
||||||
window.hide()
|
window.hide()
|
||||||
@@ -76,7 +76,7 @@ export class Application {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
presentAllWindows() {
|
presentAllWindows (): void {
|
||||||
for (let window of this.windows) {
|
for (let window of this.windows) {
|
||||||
window.present()
|
window.present()
|
||||||
}
|
}
|
||||||
|
@@ -169,7 +169,7 @@ export class Window {
|
|||||||
return this.window.isFocused()
|
return this.window.isFocused()
|
||||||
}
|
}
|
||||||
|
|
||||||
hide () {
|
hide (): void {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
// Lose focus
|
// Lose focus
|
||||||
Menu.sendActionToFirstResponder('hide:')
|
Menu.sendActionToFirstResponder('hide:')
|
||||||
@@ -180,7 +180,7 @@ export class Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
present () {
|
present (): void {
|
||||||
if (!this.window.isVisible()) {
|
if (!this.window.isVisible()) {
|
||||||
// unfocused, invisible
|
// unfocused, invisible
|
||||||
this.window.show()
|
this.window.show()
|
||||||
|
@@ -250,7 +250,7 @@ export class HostAppService {
|
|||||||
/**
|
/**
|
||||||
* Notifies other windows of config file changes
|
* Notifies other windows of config file changes
|
||||||
*/
|
*/
|
||||||
broadcastConfigChange (configStore: any): void {
|
broadcastConfigChange (configStore: {[k: string]: any}): void {
|
||||||
this.electron.ipcRenderer.send('app:config-change', configStore)
|
this.electron.ipcRenderer.send('app:config-change', configStore)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -88,9 +88,9 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
if (!childKey.DistributionName) {
|
if (!childKey.DistributionName) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const wslVersion = (childKey.Flags.value & 8) ? 2 : 1
|
const wslVersion = childKey.Flags.value & 8 ? 2 : 1
|
||||||
const name = childKey.DistributionName.value
|
const name = childKey.DistributionName.value
|
||||||
const fsBase = (wslVersion === 2) ? `\\\\wsl$\\${name}` : (childKey.BasePath.value as string + '\\rootfs')
|
const fsBase = wslVersion === 2 ? `\\\\wsl$\\${name}` : childKey.BasePath.value as string + '\\rootfs'
|
||||||
const shell: Shell = {
|
const shell: Shell = {
|
||||||
id: `wsl-${slugify(name)}`,
|
id: `wsl-${slugify(name)}`,
|
||||||
name: `WSL / ${name}`,
|
name: `WSL / ${name}`,
|
||||||
|
Reference in New Issue
Block a user