Skip to content

Commit

Permalink
fix live dev reloader missing resizeWindow() for themes
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanhowell5195 committed Jun 8, 2024
1 parent 56e47a6 commit 5f0756b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
11 changes: 6 additions & 5 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,14 @@
"author": "Ewan Howell",
"description": "Edit plugins and themes live in any text editor and have them automatically update in Blockbench.",
"tags": ["Plugins", "Themes", "Blockbench"],
"version": "1.0.0",
"min_version": "4.9.3",
"version": "1.0.1",
"min_version": "4.10.0",
"variant": "desktop",
"website": "https://ewanhowell.com/plugins/live-dev-reloader",
"website": "https://ewanhowell.com/plugins/live-dev-reloader/",
"repository": "https://github.com/ewanhowell5195/blockbenchPlugins/tree/main/live_dev_reloader",
"bug_tracker": "https://github.com/ewanhowell5195/blockbenchPlugins/issues",
"creation_date": "2024-01-20"
"bug_tracker": "https://github.com/ewanhowell5195/blockbenchPlugins/issues?title=[Live Dev Reloader]",
"creation_date": "2024-01-20",
"has_changelog": true
},
"threecore_exporter": {
"title": "ThreeCore Exporter",
Expand Down
28 changes: 28 additions & 0 deletions plugins/live_dev_reloader/changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"1.0.0": {
"title": "1.0.0",
"date": "2024-01-20",
"author": "Ewan Howell",
"categories": [
{
"title": "New Features",
"list": [
"Initial release"
]
}
]
},
"1.0.1": {
"title": "1.0.1",
"date": "2024-06-08",
"author": "Ewan Howell",
"categories": [
{
"title": "Bug Fixes",
"list": [
"Fixed reloading themes that change the viewport size causing the viewport to render incorrectly"
]
}
]
}
}
10 changes: 6 additions & 4 deletions plugins/live_dev_reloader/live_dev_reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
author: "Ewan Howell",
description: "Edit plugins and themes live in any text editor and have them automatically update in Blockbench.",
tags: ["Plugins", "Themes", "Blockbench"],
version: "1.0.0",
min_version: "4.9.3",
version: "1.0.1",
min_version: "4.10.0",
variant: "desktop",
website: "https://ewanhowell.com/plugins/live-dev-reloader",
website: "https://ewanhowell.com/plugins/live-dev-reloader/",
repository: "https://github.com/ewanhowell5195/blockbenchPlugins/tree/main/live_dev_reloader",
bug_tracker: "https://github.com/ewanhowell5195/blockbenchPlugins/issues",
bug_tracker: "https://github.com/ewanhowell5195/blockbenchPlugins/issues?title=[Live Dev Reloader]",
creation_date: "2024-01-20",
has_changelog: true,
onload() {
let toggle
actions = [
Expand Down Expand Up @@ -179,6 +180,7 @@
}
}
styles = Blockbench.addCSS(css)
resizeWindow()
console.log(`Theme reloaded: ${path.basename(watching, ".bbtheme")}`)
}
}
Expand Down

0 comments on commit 5f0756b

Please sign in to comment.