Skip to content

Commit 505792c

Browse files
committed
log where notes are stored on start up
1 parent 9b8536a commit 505792c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/application.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ import Gdk from "gi://Gdk?version=4.0";
3232

3333
import { StickyNotes } from "./notes.js";
3434
import { Note, settings } from "./util.js";
35-
import { delete_note, load_notes, save_note, save_notes } from "./store.js";
35+
import {
36+
delete_note,
37+
load_notes,
38+
NewNotesDir,
39+
save_note,
40+
save_notes,
41+
} from "./store.js";
3642
import { Window } from "./window.js";
3743

3844
export class Application extends Adw.Application {
@@ -61,6 +67,8 @@ export class Application extends Adw.Application {
6167

6268
this.init_actions();
6369

70+
console.log("Storing Notes at: " + NewNotesDir.get_path());
71+
6472
try {
6573
const notes = load_notes();
6674

types/ambient.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ declare const pkg: {
1111
};
1212

1313
declare module console {
14-
export function error(obj: object, others?: object[]): void;
15-
export function error(msg: string, subsitutions?: any[]): void;
14+
export function error(...args: any[]): void;
15+
export function debug(...args: any[]): void;
1616
export function log(...args: any[]): void;
1717
}
1818

@@ -41,4 +41,4 @@ interface TextEncodeOptions {
4141
declare class TextEncoder {
4242
constructor();
4343
encode(input?: string, options?: TextEncodeOptions): Uint8Array;
44-
}
44+
}

0 commit comments

Comments
 (0)