File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ class WorkspaceSwitcherPopup extends SwitcherPopup {
195195 while ( modals . length > 0 ) {
196196 modals . pop ( ) . destroy ( ) ;
197197 }
198+
199+ this . _items . forEach ( ( x ) => x . destroy ( ) ) ;
200+ this . _items = [ ] ;
198201 }
199202
200203 vfunc_allocate ( box ) {
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ export default GObject.registerClass({
4242 style : `spacing: ${ ITEM_SPACING } ` ,
4343 } ) ;
4444 this . _lists = [ ] ;
45- this . _thumbnails = thumbnails ;
46- this . _workspaceName = workspaceName ;
4745 this . _scale = options . scale ;
4846 this . _showThumbnails = options . showThumbnails ;
4947 this . _showWorkspaceName = options . showWorkspaceNames ;
@@ -75,7 +73,7 @@ export default GObject.registerClass({
7573 ( ) => this . highlight ( workspaceManager . get_active_workspace_index ( ) ) ) ;
7674
7775 for ( let i = 0 ; i < thumbnails . length ; i ++ ) {
78- this . addItem ( this . _thumbnails [ i ] , this . _workspaceName [ i ] ) ;
76+ this . addItem ( thumbnails [ i ] , workspaceName [ i ] ) ;
7977 }
8078 }
8179
You can’t perform that action at this time.
0 commit comments