menu/main_menu: Better RTL support

This commit is contained in:
Jordan Ruthe
2021-01-08 19:02:49 -05:00
parent ab7cffe4d6
commit a087ecfa30
3 changed files with 5 additions and 10 deletions

View File

@@ -108,6 +108,7 @@ class KlipperScreen(Gtk.Window):
for lang in self.rtl_languages:
if os.getenv('LANG').lower().startswith(lang):
self.lang_ltr = False
Gtk.Widget.set_default_direction(Gtk.TextDirection.RTL)
logger.debug("Enabling RTL mode")
break