Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod commands;
#[cfg(target_os = "macos")]
mod macos;
mod tray;
mod window_utils;


use commands::shortcuts::GlobalShortcutState;
use std::sync::atomic::{AtomicBool, Ordering};
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/tray.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use tauri::{
menu::{Menu, MenuItem},
tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},
App, Manager,
App,
};

pub fn create_tray(app: &App) -> Result<(), Box<dyn std::error::Error>> {
Expand Down Expand Up @@ -39,7 +39,7 @@ pub fn create_tray(app: &App) -> Result<(), Box<dyn std::error::Error>> {
} = event
{
let app = tray.app_handle();
crate::commands::system::toggle_window(&app);
crate::commands::system::toggle_window(app);
}
})
.build(app)?;
Expand Down
11 changes: 0 additions & 11 deletions src-tauri/src/window_utils.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const tauriApi: ElectronAPI = {
try {
return await invoke('get_notes')
} catch (e) {
// eslint-disable-next-line no-console
console.error('Failed to get notes', e)
return []
}
Expand Down
Loading