Skip to content

Commit

Permalink
safely destroy splash screen, bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed May 17, 2024
1 parent b9d2ad8 commit 56cee5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/modAssist_window_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,12 @@ module.exports.windowLib = class {
this.win.splash.on('closed', () => { this.win.splash = null })

this.win.main.once('ready-to-show', () => {
setTimeout(() => { this.win.main.show(); this.win.splash.destroy() }, 2000)
setTimeout(() => {
this.win.main.show()
if ( this.isValid('splash') ) {
this.win.splash.destroy()
}
}, 2000)
})
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fsg-mod-assistant",
"version": "4.0.3",
"version": "4.0.4",
"description": "FSG Farm Sim Mod Assistant",
"main": "modAssist_main.js",
"homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme",
Expand Down

0 comments on commit 56cee5c

Please sign in to comment.