#406 keyboard shortcut to show/hide sidebar

This commit is contained in:
Jan Prochazka
2022-11-10 11:36:31 +01:00
parent 4fa043b7e5
commit ed71ef312d
10 changed files with 60 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { get } from 'svelte/store';
import getElectron from './getElectron';
import { currentArchive, extensions, selectedWidget } from '../stores';
import { currentArchive, extensions, selectedWidget, visibleWidgetSideBar } from '../stores';
import { showSnackbarSuccess } from './snackbar';
import { apiCall } from './api';
@@ -16,5 +16,6 @@ export async function openArchiveFolder() {
currentArchive.set(resp);
selectedWidget.set('archive');
visibleWidgetSideBar.set(true);
showSnackbarSuccess(`Created link ${resp}`);
}