hotkeys/windows.py: Add explicit platform check

This commit is contained in:
A_D committed 2022-12-23 18:07:39 +02:00
1 parent 470c9b2728
commit 490bd9dbdd
1 file changed
+3
+3
View File
@@ -2,6 +2,7 @@
import atexit
import ctypes
import pathlib
import sys
import threading
import tkinter as tk
import winsound
@@ -12,6 +13,8 @@ from config import config
from EDMCLogging import get_main_logger
from hotkey import AbstractHotkeyMgr
assert sys.platform == 'win32'
logger = get_main_logger()
RegisterHotKey = ctypes.windll.user32.RegisterHotKey