HavocFramework / Havoc

The Havoc Framework.
GNU General Public License v3.0
6.31k stars 903 forks source link

Update Main.cpp to fix font problem in kali + other distros #405

Closed byinarie closed 9 months ago

byinarie commented 9 months ago

Added QTimer that reapplies the Monaco font after 10ms to ensure the font is applied regardless of the users Qt5 Settings.

The attached video is an example of an 8 second reapply. Using 10ms appears makes it almost instantaneous without causing any noticeable issues. https://github.com/HavocFramework/Havoc/assets/20119926/5da11371-e552-4d87-a213-713e04ac829b

S4ntiagoP commented 9 months ago

I can't test if this actually works but I'll take your word 😛