fixed some numbers, especially. for the privacy dialog

This commit is contained in:
2025-11-24 16:07:47 +01:00
parent 5fd77f4b39
commit 34ab17fbc9
2 changed files with 126 additions and 16 deletions

View File

@@ -1255,8 +1255,27 @@ COMMANDS (type /help in chat for full list):
logger.error(f"Error during close: {e}")
self.Destroy()
if os.name == 'nt':
import ctypes
def enable_high_dpi():
try:
ctypes.windll.shcore.SetProcessDpiAwareness(1)
except:
try:
ctypes.windll.user32.SetProcessDPIAware()
except:
pass
else:
pass
if __name__ == "__main__":
try:
if os.name == 'nt':
enable_high_dpi()
else:
pass
app = wx.App()
frame = IRCFrame()
frame.SetIcon(wx.Icon(get_resource_path("icon.ico"), wx.BITMAP_TYPE_ICO))