Skip to content

Commit

Permalink
Tab close does not close the tab directly anymore. The server removes…
Browse files Browse the repository at this point in the history
… the tab, and sends the remove to the client.
  • Loading branch information
mhandsteiner committed Sep 27, 2024
1 parent 31c3deb commit e58f56a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/components/panels/tabsetpanel/TabsetPanelImpl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const TabsetPanelImpl: FC<ITabsetImpl & IComponentConstants> = (props) => {
style={{"--nav-background": props.compStyle.background} as CSSProperties}
activeIndex={props.selectedIndex}
onTabChange={event => props.onTabChange(event.index)}
onTabClose={event => props.onTabClose(event.index)}
onBeforeTabClose={event => props.onTabClose(event.index)}
{...usePopupMenu(props)}>
{builtTabs}
</TabView>
Expand Down
4 changes: 3 additions & 1 deletion src/main/components/panels/tabsetpanel/UITabsetPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ const UITabsetPanel: FC<ITabsetPanel & IExtendableTabsetPanel & IComponentConsta
}

showTopBar(props.context.server.sendRequest(buildTabRequest(tabId), REQUEST_KEYWORDS.CLOSE_TAB), props.topbar);
closing.current = true
closing.current = true;

return false;
}

return (
Expand Down

0 comments on commit e58f56a

Please sign in to comment.