-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable window re-focus when go app reloads #2272
Add option to disable window re-focus when go app reloads #2272
Conversation
ab0633d
to
b40895c
Compare
b40895c
to
8172dea
Compare
…dow_re-focus' into feature/1495_Option_to_disable_window_re-focus
You may be able to get the same functionality if you set |
I have try it, but with |
Maybe you could add a flag that overrides the 'StartHidden' to the debug options in the appoptions? |
You are right, I have moved it to |
I see this as more a cli flag because as you said, it's easy to forget it when you build. I'm going to add this to v3. Feel free to use a fork of v2 with this patch until it's released. |
okay, thanks! |
This PR adds option to disable window re-focus when go app reloads. #1495
Application options
I created a new property in the App options, It defaults to false
How to test
NoDesktopOnDev: true
, runwails dev
not open the desktop app and http://localhost:34115 have normal behaviorNoDesktopOnDev: true
, runwails build
, the executable have normal behaviorNoDesktopOnDev: false
, runwails dev
open the desktop appCurrent functionality is working. I also wrote the documentation for En and Zh-Hans.
Below is an example main.go file that can be used as a test in a clean wails project
@leaanthony