fix(tauri): exit app on close and grant ipc permissions & update changelog

This commit is contained in:
Psychotoxical
2026-03-09 19:35:25 +01:00
parent 7cc90e2ab7
commit 1cf71f51b5
4 changed files with 21 additions and 3 deletions
+4
View File
@@ -1,6 +1,7 @@
import React, { useEffect, useState, useCallback } from 'react';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { listen } from '@tauri-apps/api/event';
import { invoke } from '@tauri-apps/api/core';
import { getCurrentWindow } from '@tauri-apps/api/window';
import Sidebar from './components/Sidebar';
import PlayerBar from './components/PlayerBar';
@@ -207,6 +208,9 @@ function TauriEventBridge() {
if (minimizeToTray) {
event.preventDefault();
await win.hide();
} else {
// If not minimizing to tray, we want to exit the app completely
await invoke('exit_app');
}
}).then(u => unlisten.push(u));