Skip to content

Commit

Permalink
Remove auto translation (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
MewPurPur committed Jun 6, 2024
1 parent fb5d39d commit a7e9136
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/HandlerGUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ var popup_overlay_stack: Array[Control]


func _enter_tree() -> void:
process_mode = Node.PROCESS_MODE_ALWAYS

func _ready() -> void:
get_tree().root.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED
get_window().files_dropped.connect(_on_files_dropped)
get_window().dpi_changed.connect(update_ui_scale)
get_window().size_changed.connect(remove_all_popup_overlays)
if OS.has_feature("web"):
_define_web_js()

func _ready() -> void:
await get_tree().process_frame
update_ui_scale()

Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/context_popup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ icon: Texture2D = null, shortcut := "") -> Button:
label_margin.add_theme_constant_override("margin_right",
int(ret_button.get_theme_stylebox("normal").content_margin_right))
var label := Label.new()
label.auto_translate = false
label.text = events[0].as_text_keycode()
label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
label.add_theme_color_override("font_color",
Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/presented_shortcut.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ func setup(new_action: String) -> void:
# Create new ones.
for i in events.size():
var new_btn := Button.new()
new_btn.auto_translate = false
shortcut_container.add_child.call_deferred(new_btn)
new_btn.custom_minimum_size.x = 144.0
new_btn.size_flags_horizontal = Control.SIZE_FILL
Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/setting_shortcut.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func sync() -> void:
# Create new ones.
for i in 3:
var new_btn := Button.new()
new_btn.auto_translate = false
shortcut_container.add_child.call_deferred(new_btn)
shortcut_buttons.append(new_btn)
new_btn.button_mask = MOUSE_BUTTON_MASK_LEFT | MOUSE_BUTTON_MASK_RIGHT
Expand Down

0 comments on commit a7e9136

Please sign in to comment.