Skip to content

Commit

Permalink
fix: setup window setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 8, 2022
1 parent 2e12e5a commit f1b45b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xmcl-electron-app/main/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ export default class Controller implements LauncherAppController {
}

async processFirstLaunch(): Promise<string> {
this.createSetupWindow()
this.app.handle('preset', () => ({ locale: this.app.getLocale(), minecraftPath: this.app.minecraftDataPath, defaultPath: this.app.appDataPath }))
this.createSetupWindow()

return new Promise<string>((resolve) => {
const fallback = () => {
Expand All @@ -384,9 +384,10 @@ export default class Controller implements LauncherAppController {
}

async engineReady() {
await this.createSetupWindow()
await this.createMainWindow()
this.createCurseforgeWindow()
// this.setupTray()
// this.createCurseforgeWindow()
this.setupTray()
this.setupTask()

this.app.storeManager.subscribe('localeSet', (l) => {
Expand Down
1 change: 1 addition & 0 deletions xmcl-keystone-ui/src/windows/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import colors from 'vuetify/es5/util/colors'
import Setup from './Setup.vue'

Vue.config.productionTip = false
Vue.use(VueI18n)

const i18n = new VueI18n({
locale: 'en',
Expand Down

0 comments on commit f1b45b6

Please sign in to comment.