mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 06:02:00 +02:00
Upgrade to Tauri 2.0 (#23)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { type } from '@tauri-apps/api/os';
|
||||
import { appWindow } from '@tauri-apps/api/window';
|
||||
import { getCurrent } from '@tauri-apps/api/webviewWindow';
|
||||
import { type } from '@tauri-apps/plugin-os';
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { App } from './components/App';
|
||||
@@ -10,8 +10,8 @@ import { setAppearanceOnDocument } from './lib/theme/window';
|
||||
|
||||
// Hide decorations here because it doesn't work in Rust for some reason (bug?)
|
||||
const osType = await type();
|
||||
if (osType !== 'Darwin') {
|
||||
await appWindow.setDecorations(false);
|
||||
if (osType !== 'macos') {
|
||||
await getCurrent().setDecorations(false);
|
||||
}
|
||||
|
||||
// await attachConsole();
|
||||
|
||||
Reference in New Issue
Block a user