diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-17 13:51:01 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-17 13:51:01 -0400 |
commit | 6b87703bff0e26489ae5e7757b7a622a7143a51d (patch) | |
tree | 405fd4c5368e9d7a3559c8686e1f73e62651d514 /src/client/util/SelectionManager.ts | |
parent | aa8e8fc3a2113c9f98471cc0ca1cfb660387fc81 (diff) |
DocView 1330 problem statement
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 0862cf20e..f3b2acb5e 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -34,9 +34,7 @@ export class SelectionManager { public static SelectView = action((docView: DocumentView | undefined, extendSelection: boolean): void => { if (!docView) this.DeselectAll(); else if (!docView.IsSelected) { - if (!extendSelection) { - this.DeselectAll(); - }; + if (!extendSelection) this.DeselectAll(); this.Instance.SelectedViews.push(docView); docView.IsSelected = true; docView._props.whenChildContentsActiveChanged(true); |