diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 3cb71f1d2..94a7c7474 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -338,6 +338,8 @@ var AllView = class AllView extends BaseAppView { this._folderSettings.connect('changed::folder-children', () => { Main.queueDeferredWork(this._redisplayWorkId); }); + + this._nEventBlockerInhibits = 0; } _itemNameChanged(item) { @@ -672,6 +674,16 @@ var AllView = class AllView extends BaseAppView { for (let i = 0; i < this.folderIcons.length; i++) this.folderIcons[i].adaptToSize(availWidth, availHeight); } + + inhibitEventBlocker() { + this._nEventBlockerInhibits++; + this._eventBlocker.visible = this._nEventBlockerInhibits == 0; + } + + uninhibitEventBlocker() { + this._nEventBlockerInhibits--; + this._eventBlocker.visible = this._nEventBlockerInhibits == 0; + } }; Signals.addSignalMethods(AllView.prototype);