Skip to content

Commit 737bc53

Browse files
committed
Fixed english main.yml localization file having % as the beginning of one token, changed the way attempt_apply_dnd function checks for the current platform.
1 parent 4f1cd9e commit 737bc53

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flatc_deserializer_frontend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
# pylint: disable=import-error
55
import os
6+
import sys
67
import tkinter.filedialog
78
from collections.abc import Callable
89
from importlib import import_module
@@ -27,7 +28,7 @@ def attempt_apply_dnd(widget_id: int, dnd_event: Callable):
2728
:param widget_id: Widget ID.
2829
:param dnd_event: Callable object for drag-and-drop event.
2930
"""
30-
if os.name != "nt":
31+
if sys.platform != "win32":
3132
return
3233
try:
3334
mod = import_module("pywinstyles")

localization/en_US/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tkinter_binaries_select: Select binary files
88
flatc_binary_filetype: Binary Flatbuffers file
99
tkinter_output_select: Select destination directory
1010
files: Files
11-
unsupported_platform: %s platform is not supported.
11+
unsupported_platform: "%s platform is not supported."
1212
executable_not_found: Executable %s not found.
1313
file_not_found: File %s not found.
1414
directory_not_found: Directory %s not found.

0 commit comments

Comments
 (0)