fixed some numbers, especially. for the privacy dialog
This commit is contained in:
19
src/main.py
19
src/main.py
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user