workspaceThumbnail: Update visibility when showing the overview

There's currently a bug that we continue showing the workspace minimap
when the number of workspaces changes back to 1 during the session (ie.
outside the overview). Fix that by also updating the workspaceThumbnails
visibility when entering the overview.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3819

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1741>
This commit is contained in:
Jonas Dreßler 2021-03-04 08:14:03 +01:00 committed by Marge Bot
parent bd7e3f4d6b
commit 7a57528bd7

View File

@ -1018,6 +1018,8 @@ var ThumbnailsBox = GObject.registerClass({
this._stateCounts[ThumbnailState[key]] = 0;
this.addThumbnails(0, workspaceManager.n_workspaces);
this._updateShouldShow();
}
_destroyThumbnails() {