🐛 Fix the issue with ChatGPT lifecycle

This commit is contained in:
Tw93
2024-05-16 12:01:33 +08:00
parent 2992b7c130
commit 4de13f00a8
2 changed files with 0 additions and 3 deletions

View File

@@ -27,7 +27,6 @@ pub fn get_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Wind
let mut window_builder = WindowBuilder::new(app, "pake", url) let mut window_builder = WindowBuilder::new(app, "pake", url)
.title("") .title("")
.user_agent(user_agent) .user_agent(user_agent)
.visible(false) // Prevent initial shaking
.resizable(window_config.resizable) .resizable(window_config.resizable)
.fullscreen(window_config.fullscreen) .fullscreen(window_config.fullscreen)
.inner_size(window_config.width, window_config.height) .inner_size(window_config.width, window_config.height)

View File

@@ -41,8 +41,6 @@ pub fn run_app() {
]) ])
.setup(move |app| { .setup(move |app| {
let _window = get_window(app, pake_config, data_dir); let _window = get_window(app, pake_config, data_dir);
// Prevent initial shaking
_window.show().unwrap();
if !activation_shortcut.is_empty() { if !activation_shortcut.is_empty() {
let app_handle = app.app_handle().clone(); let app_handle = app.app_handle().clone();