-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: daemon not killed when migrating app architecture (#1109)
Add an option to kill running daemon when it's incompatible with the app version.
- Loading branch information
Showing
3 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import { doQuit, doSkipWrongDaemonNotice } from 'redux/actions/app'; | ||
import { doQuit, doQuitAnyDaemon } from 'redux/actions/app'; | ||
import ModalIncompatibleDaemon from './view'; | ||
|
||
const select = state => ({}); | ||
|
||
const perform = dispatch => ({ | ||
quit: () => dispatch(doQuit()), | ||
quitAnyDaemon: () => dispatch(doQuitAnyDaemon()), | ||
}); | ||
|
||
export default connect(select, perform)(ModalIncompatibleDaemon); | ||
export default connect(null, perform)(ModalIncompatibleDaemon); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters