From 72f921932ea17451804f9b9af126155becb4bab1 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 29 Jan 2024 09:11:33 +0100 Subject: [PATCH] lint --- .../app/plugins/electron/appUpdaterPlugin.ts | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/electron/appUpdaterPlugin.ts b/apps/remix-ide/src/app/plugins/electron/appUpdaterPlugin.ts index e0133e3eaa..ec879fa687 100644 --- a/apps/remix-ide/src/app/plugins/electron/appUpdaterPlugin.ts +++ b/apps/remix-ide/src/app/plugins/electron/appUpdaterPlugin.ts @@ -1,55 +1,55 @@ import { ElectronPlugin } from '@remixproject/engine-electron' const profile = { - displayName: 'appUpdater', - name: 'appUpdater', - description: 'appUpdater', + displayName: 'appUpdater', + name: 'appUpdater', + description: 'appUpdater', } export class appUpdaterPlugin extends ElectronPlugin { - constructor() { - console.log('appUpdaterPlugin') - super(profile) - } + constructor() { + console.log('appUpdaterPlugin') + super(profile) + } - onActivation(): void { - this.on('appUpdater', 'askForUpdate', () => { - console.log('askForUpdate') - const upgradeModal = { - id: 'confirmUpdate', - title: 'An update is available', - message: `A new version of Remix Desktop is available. Do you want to update?`, - modalType: 'modal', - okLabel: 'Yes', - cancelLabel: 'No', - okFn: () => { - this.call('appUpdater', 'download') - }, - cancelFn: () => { + onActivation(): void { + this.on('appUpdater', 'askForUpdate', () => { + console.log('askForUpdate') + const upgradeModal = { + id: 'confirmUpdate', + title: 'An update is available', + message: `A new version of Remix Desktop is available. Do you want to update?`, + modalType: 'modal', + okLabel: 'Yes', + cancelLabel: 'No', + okFn: () => { + this.call('appUpdater', 'download') + }, + cancelFn: () => { - }, - hideFn: () => null - } - this.call('notification', 'modal', upgradeModal) - }) - this.on('appUpdater', 'downloadReady', () => { - console.log('downloadReady') - const upgradeModal = { - id: 'confirmInstall', - title: 'An update is ready to install', - message: `A new version of Remix Desktop is ready to install. Do you want to install it now? This will close Remix Desktop.`, - modalType: 'modal', - okLabel: 'Yes', - cancelLabel: 'No', - okFn: () => { - this.call('appUpdater', 'install') - }, - cancelFn: () => { + }, + hideFn: () => null + } + this.call('notification', 'modal', upgradeModal) + }) + this.on('appUpdater', 'downloadReady', () => { + console.log('downloadReady') + const upgradeModal = { + id: 'confirmInstall', + title: 'An update is ready to install', + message: `A new version of Remix Desktop is ready to install. Do you want to install it now? This will close Remix Desktop.`, + modalType: 'modal', + okLabel: 'Yes', + cancelLabel: 'No', + okFn: () => { + this.call('appUpdater', 'install') + }, + cancelFn: () => { - }, - hideFn: () => null - } - this.call('notification', 'modal', upgradeModal) - }) - } + }, + hideFn: () => null + } + this.call('notification', 'modal', upgradeModal) + }) + } } \ No newline at end of file