mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 03:31:52 +00:00
fix: Remove extra calling function. Now call directly to check wakatime plugin.
This commit is contained in:
@@ -48,10 +48,6 @@ class PluginsTab extends React.Component {
|
|||||||
ipc.removeListener('APP_SETTING_ERROR', this.handleSettingError)
|
ipc.removeListener('APP_SETTING_ERROR', this.handleSettingError)
|
||||||
}
|
}
|
||||||
|
|
||||||
checkPluginsRequirements() {
|
|
||||||
this.checkWakatimePluginRequirement()
|
|
||||||
}
|
|
||||||
|
|
||||||
checkWakatimePluginRequirement() {
|
checkWakatimePluginRequirement() {
|
||||||
const { wakatime } = this.state.config
|
const { wakatime } = this.state.config
|
||||||
if (wakatime.isActive && !commandExists('wakatime-cli')) {
|
if (wakatime.isActive && !commandExists('wakatime-cli')) {
|
||||||
@@ -94,7 +90,7 @@ class PluginsTab extends React.Component {
|
|||||||
})
|
})
|
||||||
this.clearMessage()
|
this.clearMessage()
|
||||||
this.props.haveToSave()
|
this.props.haveToSave()
|
||||||
this.checkPluginsRequirements()
|
this.checkWakatimePluginRequirement()
|
||||||
}
|
}
|
||||||
|
|
||||||
handleIsWakatimePluginActiveChange(e) {
|
handleIsWakatimePluginActiveChange(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user