[bugfix] Fix window geometry bug that was not save and restore. changes the way how to get appWindow instance from Tauri.
This commit is contained in:
@@ -2,6 +2,10 @@ import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import "@root/locales/config.js";
|
||||
import "./_index_css/root.css";
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
|
||||
import { store } from "@store";
|
||||
store.appWindow = await getCurrentWindow();
|
||||
|
||||
import { App } from "./App";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user