You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tauri.config.json file, if the visible attribute is set to false, and subsequently, the window is displayed using the show() method within the setup() hook, calling a Tauri command to create a child window results in the child window appearing and disappearing automatically.
The child window shows normally if visible is set to true for mainwindow.
selastingeorge
changed the title
Child window failed to show if main window is not visible initially hidden [bug]
[bug] Child window failed to show if main window is not visible initially hidden
Mar 27, 2024
Describe the bug
In the tauri.config.json file, if the visible attribute is set to false, and subsequently, the window is displayed using the show() method within the setup() hook, calling a Tauri command to create a child window results in the child window appearing and disappearing automatically.
The child window shows normally if visible is set to true for mainwindow.
Part of tauri.config.json is given below:
In main.rs file:
In Angular code, i invoke the command using:
Reproduction
To reproduce the bug, follow these steps:
visible
to false in tauri.config.jsonshow()
method from WebviewWindowSample project to reproduce the issue : https://github.com/selastingeorge/childwindow-test
Example code taken from (Modified for Tauri v2 support): https://tauri.app/v1/guides/features/multiwindow/
Expected behavior
The child window should be displayed along with main window.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: