force display the window after started or updated

This commit is contained in:
josc146 2023-05-29 21:51:33 +08:00
parent 7fb27b927c
commit a8c936a885

View File

@ -6,6 +6,7 @@ import App from './App';
import { HashRouter } from 'react-router-dom';
import { startup } from './startup';
import './_locales/i18n-react';
import { WindowSetAlwaysOnTop } from '../wailsjs/runtime';
startup().then(() => {
const container = document.getElementById('root');
@ -17,4 +18,8 @@ startup().then(() => {
<App />
</HashRouter>
);
// force display the window
WindowSetAlwaysOnTop(true);
WindowSetAlwaysOnTop(false);
});