fix: suppress console on windows release builds #1006
No reviewers
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip!1006
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chakany/fix-windows-console"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I installed gossip on my Windows 11 machine using the msi installer and noticed that when I opened it it would also open a terminal window to log events. I checked the codebase, and compared it against my own egui app's codebase, and found that the macro that controls this behavior was set differently. When I changed it and re-compiled in release mode, the terminal window no longer appeared.
It is a simple one-line change.
I find the console to be important. I know it seems like a debugging leftover, or annoying, and it prints way too much stuff, but the main UI window doesn't have enough space to show most of the error conditions that you might want to be aware of. A better path forward would be to have an error indicator in the UI that you can click to open which shows long lines of errors, and of course to prune back the output, and only then remove the console.
You can run without the console if it works well enough for you and you don't think you can do anything about the conditions that get printed. But by default, for now, I think I'll leave it.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.