🐛 Fix the issue with ChatGPT lifecycle
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user