diff --git a/metadata.json b/metadata.json index 56cf45c..a8487b8 100644 --- a/metadata.json +++ b/metadata.json @@ -4,5 +4,5 @@ "url": "https://github.com/axxapy/gnome-ui-tune", "uuid": "gnome-ui-tune@itstime.tech", "settings-schema": "org.gnome.shell.extensions.gnome-ui-tune", - "shell-version": ["45"] + "shell-version": ["45", "46"] } diff --git a/src/modScaleThumbnails.js b/src/modScaleThumbnails.js index dfe110b..54875f0 100644 --- a/src/modScaleThumbnails.js +++ b/src/modScaleThumbnails.js @@ -23,7 +23,7 @@ export default class extends Mod { const __scaleFactor = this.scaleFactor this.bkp_SecondaryMonitorDisplay_getThumbnailsHeight = SecondaryMonitorDisplay.prototype._getThumbnailsHeight SecondaryMonitorDisplay.prototype._getThumbnailsHeight = function(box) { - if (!this._thumbnails.visible) + if (!this || !this._thumbnails.visible) return 0; this._thumbnails._maxThumbnailScale = __scaleFactor