small fixes

This commit is contained in:
catto 2024-04-22 17:14:58 +02:00
parent e4c77aa755
commit efb306ac05
2 changed files with 2 additions and 8 deletions

View File

@ -8,7 +8,7 @@
},
"package": {
"productName": "snotes-deck",
"version": "0.0.8"
"version": "0.0.9"
},
"tauri": {
"allowlist": {

View File

@ -26,12 +26,6 @@ let idModalActive = false;
let typingTimer: number | null = null;
const AUTOSAVE_DELAY = 5000;
const exportFileOptions = {
//defaultPath: "/path/to/your/default/directory",
filters: [{ name: "Text Files", extensions: ["txt"] }],
};
enum EditorState {
NEW,
EDITING
@ -597,7 +591,7 @@ async function openNoteById(value: string): Promise<boolean> {
async function exportNote(contents: string | null) {
if (contents) {
const title = contents.slice(0, 10);
const title = contents.slice(0, 10).trim();
const filePath = await save({
defaultPath: (await homeDir()) + "/" + title + ".md",
filters: [{