Skip to content

Commit

Permalink
Don't trigger maximize while closing from dblclick
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinBrett committed Jan 7, 2022
1 parent 4560fb1 commit 36b53f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/system/Window/Titlebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Titlebar = ({ id }: TitlebarProps): JSX.Element => {
} = useProcesses();
const {
allowResizing = true,
closing,
hideTitlebarIcon,
icon,
title,
Expand All @@ -41,7 +42,7 @@ const Titlebar = ({ id }: TitlebarProps): JSX.Element => {
className={rndDefaults.dragHandleClassName}
{...useTitlebarContextMenu(id)}
>
<Button as="h1" {...(allowResizing ? onClickMaximize : {})}>
<Button as="h1" {...(allowResizing && !closing ? onClickMaximize : {})}>
<figure>
{!hideTitlebarIcon && (
<Icon alt={title} imgSize={16} src={icon} {...onClickClose} />
Expand Down

0 comments on commit 36b53f6

Please sign in to comment.