feat(settings): separate toasts and system notifications toggles
- Split "Notifications" setting into "In-app Toasts" and "System Notifications" - In-app toasts control the toast messages within the app - System notifications control desktop notifications on track change - Both settings persist to localStorage and load on app startup - Migrates old 'qbz-notifications-enabled' key to new 'qbz-toasts-enabled' feat(library): add stop scanning button - Add library_stop_scan command in Rust backend - Add cancel flag (AtomicBool) to LibraryState - Check cancel flag during scan loop for both CUE and audio files - Add "Cancelled" status to ScanStatus enum - Add stop button in LocalLibraryView scan progress UI - Button appears red on hover for clear visibility cc
This commit is contained in:
1 parent
7c42395598
commit
b8e3bca6f8
9 files changed
+149
-27
No files matched your search
@@ -8,6 +8,8 @@
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { getCurrentWebview } from '@tauri-apps/api/webview';
|
||||
import { goBack, goForward } from '$lib/stores/navigationStore';
|
||||
import { loadToastsPreference } from '$lib/stores/toastStore';
|
||||
import { loadSystemNotificationsPreference } from '$lib/services/playbackService';
|
||||
|
||||
// ============ Theme Management ============
|
||||
|
||||
@@ -106,6 +108,10 @@ export function bootstrapApp(): BootstrapResult {
|
||||
loadSavedTheme();
|
||||
void applySavedZoom();
|
||||
|
||||
// Load notification preferences
|
||||
loadToastsPreference();
|
||||
loadSystemNotificationsPreference();
|
||||
|
||||
// Setup mouse navigation
|
||||
const cleanupMouse = setupMouseNavigation();
|
||||
|
||||
|
||||
Reference in new issue
Block a user