forked from Shinonome/dots-hyprland
Fixed issue where thumbgenProc would not fallback on generate-thumbnails-magick.sh if thumbgen-venv.sh fails.
Fixed issue where thumbnails would not reload after being generated.
This commit is contained in:
@@ -73,7 +73,7 @@ MouseArea {
|
|||||||
target: Wallpapers
|
target: Wallpapers
|
||||||
function onThumbnailGenerated(directory) {
|
function onThumbnailGenerated(directory) {
|
||||||
if (thumbnailImage.status !== Image.Error) return;
|
if (thumbnailImage.status !== Image.Error) return;
|
||||||
if (FileUtils.parentDirectory(thumbnailImage.sourcePath) !== directory) return;
|
if (FileUtils.parentDirectory(thumbnailImage.sourcePath) !== FileUtils.trimFileProtocol(directory)) return;
|
||||||
thumbnailImage.source = "";
|
thumbnailImage.source = "";
|
||||||
thumbnailImage.source = thumbnailImage.thumbnailPath;
|
thumbnailImage.source = thumbnailImage.thumbnailPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
|
|
||||||
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
|
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
|
||||||
GIO_USE_VFS=local "$SCRIPT_DIR/thumbgen.py" "$@"
|
GIO_USE_VFS=local "$SCRIPT_DIR/thumbgen.py" "$@"
|
||||||
|
THUMBGEN_EXIT_CODE=$?
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
|
exit $THUMBGEN_EXIT_CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user