add missing buttons to default view

This commit is contained in:
vcoppe
2024-09-21 16:42:13 +02:00
parent 1a10ecc44b
commit 1483460ec6

View File

@@ -266,23 +266,25 @@
{$_('menu.new_segment')} {$_('menu.new_segment')}
</Menubar.Item> </Menubar.Item>
{/if} {/if}
<Menubar.Separator /> {/if}
<Menubar.Item on:click={selectAll} disabled={$fileObservers.size == 0}> <Menubar.Separator />
<FileStack size="16" class="mr-1" /> <Menubar.Item on:click={selectAll} disabled={$fileObservers.size == 0}>
{$_('menu.select_all')} <FileStack size="16" class="mr-1" />
<Shortcut key="A" ctrl={true} /> {$_('menu.select_all')}
</Menubar.Item> <Shortcut key="A" ctrl={true} />
<Menubar.Item </Menubar.Item>
on:click={() => { <Menubar.Item
if ($selection.size > 0) { on:click={() => {
centerMapOnSelection(); if ($selection.size > 0) {
} centerMapOnSelection();
}} }
> }}
<Maximize size="16" class="mr-1" /> >
{$_('menu.center')} <Maximize size="16" class="mr-1" />
<Shortcut key="⏎" ctrl={true} /> {$_('menu.center')}
</Menubar.Item> <Shortcut key="⏎" ctrl={true} />
</Menubar.Item>
{#if $verticalFileView}
<Menubar.Separator /> <Menubar.Separator />
<Menubar.Item on:click={copySelection} disabled={$selection.size === 0}> <Menubar.Item on:click={copySelection} disabled={$selection.size === 0}>
<ClipboardCopy size="16" class="mr-1" /> <ClipboardCopy size="16" class="mr-1" />