fix: re-apply LC_NUMERIC=C after QApplication resets locale

This commit is contained in:
2026-04-06 20:33:51 +02:00
parent bdfb9354ca
commit 3d92a66660
+1
View File
@@ -829,6 +829,7 @@ def main():
# surface handle that mpv's wid parameter cannot accept. # surface handle that mpv's wid parameter cannot accept.
os.environ.setdefault("QT_QPA_PLATFORM", "xcb") os.environ.setdefault("QT_QPA_PLATFORM", "xcb")
app = QApplication(sys.argv) app = QApplication(sys.argv)
locale.setlocale(locale.LC_NUMERIC, "C") # QApplication resets locale; re-apply for libmpv
app.setStyle("Fusion") app.setStyle("Fusion")
app.setStyleSheet(""" app.setStyleSheet("""
QWidget { background: #1e1e1e; color: #ddd; } QWidget { background: #1e1e1e; color: #ddd; }