Skip to content

Commit

Permalink
fix: error update plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Sep 6, 2024
1 parent 97c7fec commit 7d56ab3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/main/handlers/Initalization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,26 @@ export const initialization = async (
channels.INITIALIZATION_DATAS,
pluginVersion
)
} else {
mainLog.log(`8.3 Plugin installation ...`)
const getPluginNormalInstallationReturned =
await initPluginNormalInstallation(event)
initializedDatas.initPluginNormalInstallation =
getPluginNormalInstallationReturned.result as boolean
mainLog.log(getPluginNormalInstallationReturned)
const normalPluginInstallation = new ConfigData(
'plugin_installed'
)
normalPluginInstallation.result =
initializedDatas.initPluginNormalInstallation
normalPluginInstallation.message =
initializedDatas.initPluginNormalInstallation
? `Plugin installed`
: `Installation plugin failed`
getMainWindow().webContents.send(
channels.INITIALIZATION_DATAS,
normalPluginInstallation
)
}
} else {
// plugin not installed
Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/initialization-error-alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const InitErrorAlerts = ({
*/
window.initialisationAPI.sendConfigDatasToFront(
(configData: ConfigData) => {
frontLog.debug(`sendConfigDatasToFront`, configData)
if (configData.error) {
frontLog.error(configData)
window.alert(
Expand Down

0 comments on commit 7d56ab3

Please sign in to comment.