Upgrade to Tauri 2.0 (#23)

This commit is contained in:
Gregory Schier
2024-05-04 14:14:19 -07:00
committed by GitHub
parent 7f02060b9c
commit 896e3d5831
128 changed files with 20477 additions and 4114 deletions

View File

@@ -1,4 +1,4 @@
import { appWindow } from '@tauri-apps/api/window';
import { getCurrent } from '@tauri-apps/api/webviewWindow';
import { useEffect, useState } from 'react';
export function useWindowFocus() {
@@ -6,7 +6,7 @@ export function useWindowFocus() {
useEffect(() => {
let unsub: undefined | (() => void) = undefined;
appWindow
getCurrent()
.onFocusChanged((e) => {
setVisible(e.payload);
})