Skip to content

Commit

Permalink
Fixed a bug, that caused the plugin to crash on loading, when not run…
Browse files Browse the repository at this point in the history
…ning on Windows
  • Loading branch information
Molodos committed Dec 19, 2023
1 parent 8f5edad commit d7e7a16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[3.6.1]
- Fixed a bug, that caused the plugin to crash on loading, when not running on Windows

[3.6.0]
- Added support for Cura 5.6

Expand Down
2 changes: 1 addition & 1 deletion package_plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"display_name": "Elegoo Neptune Thumbnails",
"package_id": "ElegooNeptune3Thumbnails",
"package_type": "plugin",
"package_version": "3.6.0",
"package_version": "3.6.1",
"sdk_version": 8,
"sdk_version_semver": "8.0.0",
"website": "https://github.com/Molodos/ElegooNeptuneThumbnails"
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"email": "[email protected]",
"website": "https://github.com/Molodos"
},
"version": "3.6.0",
"version": "3.6.1",
"description": "Adds Elegoo Neptune printer thumbnail to G-code. Contains options to display parameters like estimated print time or model height on the thumbnail",
"supported_sdk_versions": [
"8.0.0",
Expand Down
3 changes: 1 addition & 2 deletions tools/thumbnail_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import math
from array import array
from ctypes import CDLL, windll
from ctypes import CDLL
from os import path

from PyQt6.QtCore import Qt, QByteArray, QBuffer, QIODeviceBase
Expand Down Expand Up @@ -243,7 +243,6 @@ def _parse_thumbnail_new(cls, img: QImage, width: int, height: int, img_type: st
"""
img_type = f";{img_type}:"

windll.kernel32.SetDllDirectoryW(None)
if Platform.isOSX():
p_dll = CDLL(path.abspath(path.join(path.dirname(__file__), "..", "libs", "libColPic.dylib")))
elif Platform.isLinux():
Expand Down

0 comments on commit d7e7a16

Please sign in to comment.