Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pkfln committed Nov 26, 2023
1 parent 9f9a4b5 commit f851f1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/containers/WindowTitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ const WindowTitleBar = () => {
<WindowTitleBarButtons
title={t("maximize")}
image={images.icons.windowMaximize}
onPress={async () => {
await appWindow.toggleMaximize();
}}
onPress={() => appWindow.toggleMaximize()}
/>
<WindowTitleBarButtons
title={t("close")}
Expand Down
1 change: 0 additions & 1 deletion src/utils/debounce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const debounce = <F extends (...args: any[]) => void>(

return (...args: Parameters<F>) => {
if (timerId !== null) clearTimeout(timerId);

timerId = setTimeout(() => func(...args), delay);
};
};

0 comments on commit f851f1f

Please sign in to comment.