Skip to content

Commit

Permalink
enhance: Close popup if openning Settings/FullView (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
navorite committed Nov 15, 2023
1 parent 293376c commit 0ad8da9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/lib/components/popup/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
<IconButton
icon="open"
title={i18n.getMessage('labelFullView')}
on:click={openFullView}
on:click={async () => {
await openFullView();
window.close();
}}
/>
{/if}

Expand All @@ -53,7 +56,11 @@
<IconButton
icon="settings"
title={i18n.getMessage('labelSettings')}
on:click={openOptions}
on:click={async () => {
await openOptions();

if (isPopup) window.close();
}}
/>
</div>
</div>
Expand Down

0 comments on commit 0ad8da9

Please sign in to comment.