Skip to content

Commit

Permalink
relaunch => restart
Browse files Browse the repository at this point in the history
  • Loading branch information
mon-jai committed Jul 31, 2023
1 parent e8c8505 commit 8475715
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/lib/ipc-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export type RequestChannels = {
blur: () => void
'update-accounts': (accounts: ReadonlyArray<EndpointToken>) => void
'quit-and-install-updates': () => void
'relaunch-app': () => void
'restart-app': () => void
'quit-app': () => void
'minimize-window': () => void
'maximize-window': () => void
Expand Down
2 changes: 1 addition & 1 deletion app/src/main-process/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ app.on('ready', () => {
mainWindow?.quitAndInstallUpdate()
)

ipcMain.on('relaunch-app', () => {
ipcMain.on('restart-app', () => {
app.relaunch()
app.exit()
})
Expand Down
4 changes: 2 additions & 2 deletions app/src/ui/main-process-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export const checkForUpdates = invokeProxy('check-for-updates', 1)
/** Tell the main process to quit the app and install updates */
export const quitAndInstallUpdate = sendProxy('quit-and-install-updates', 0)

/** Tell the main process to relaunch the app */
export const relaunchApp = sendProxy('relaunch-app', 0)
/** Tell the main process to restart the app */
export const restartApp = sendProxy('restart-app', 0)

/** Tell the main process to quit the app */
export const quitApp = sendProxy('quit-app', 0)
Expand Down
4 changes: 2 additions & 2 deletions app/src/ui/preferences/confirm-restart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
DialogFooter,
OkCancelButtonGroup,
} from '../dialog'
import { relaunchApp } from '../main-process-proxy'
import { restartApp } from '../main-process-proxy'

interface IConfirmRestartProps {
/**
Expand Down Expand Up @@ -54,6 +54,6 @@ export class ConfirmRestart extends React.Component<IConfirmRestartProps> {

private onSubmit = async () => {
this.props.onDismissed()
relaunchApp()
restartApp()
}
}

0 comments on commit 8475715

Please sign in to comment.