Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
fix: 修复core被重复dispose造成的闪退问题和一个build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Aug 29, 2022
1 parent 9a204b2 commit 8f22d2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/main/coreLoader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class CoreLoader {
dep.close()
}
this.DLib.close()
CoreLoader.loadStatus = false
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/hooks/caller/asst.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useSettingStore from '@/store/settings'

export default {
load: async (showTip = true) => {
load: async function (showTip = true) {
let loaded = true
const components: Partial<Record<ComponentType, ComponentStatus>> = {
'Maa Core': await window.ipcRenderer.invoke('main.ComponentManager:getStatus', 'Maa Core'),
Expand Down

0 comments on commit 8f22d2a

Please sign in to comment.