Skip to content

Commit c70972e

Browse files
committed
fix: close icon vanishing when a working set item is clicked
1 parent b981fca commit c70972e

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎src/project/WorkingSetView.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,12 @@ define(function (require, exports, module) {
759759
// re-enable stuff we turned off
760760
_suppressSortRedrawForAllViews(false);
761761
_suppressScrollShadowsOnAllViews(false);
762-
}
763762

764-
// we don't need to refresh if the item
765-
// was dragged but not enough to not change
766-
// its order in the working set
767-
if (!noRefresh) {
768-
// rebuild the view
769-
refresh(true);
763+
// a plain click changes nothing in the list, rebuilding it would only lose the hover
764+
// state of the row under the mouse. A drag that didn't change the order skips it too
765+
if (!noRefresh) {
766+
refresh(true);
767+
}
770768
}
771769
// focus the editor
772770
MainViewManager.focusActivePane();

0 commit comments

Comments
 (0)