feat(torrent): add standalone properties windows

- add caller-bound native properties bridge and lifecycle guards

- split Network settings into accessible secondary tabs

- add tabbed Torrent and generic Properties surfaces

- harden runtime validation and ignore the implementation plan
This commit is contained in:
NimBold
2026-08-04 09:26:38 +03:30
parent 579a8f7f80
commit c342bcd347
22 changed files with 1778 additions and 88 deletions
+5 -1
View File
@@ -12,6 +12,10 @@ import { i18nReady } from "./i18n";
import { ErrorBoundary } from "./components/ErrorBoundary";
import { ToastProvider } from "./contexts/ToastContext";
import { error as logError, warn as logWarn, initLogger } from "./utils/logger";
import { getCurrentWindow } from '@tauri-apps/api/window';
import { PropertiesWindowApp } from './components/PropertiesWindowApp';
const isPropertiesWindow = getCurrentWindow().label.startsWith('properties-');
void initLogger();
@@ -48,7 +52,7 @@ const renderApp = () => {
<StrictMode>
<ErrorBoundary>
<ToastProvider>
<App />
{isPropertiesWindow ? <PropertiesWindowApp /> : <App />}
</ToastProvider>
</ErrorBoundary>
</StrictMode>,