api paste button

This commit is contained in:
anne
2023-02-07 18:08:45 +01:00
parent 1416a35df1
commit 5cf2a70929
6 changed files with 52 additions and 20 deletions
@@ -63,3 +63,9 @@ func _on_show_api_key_toggled(button_pressed):
func _on_prevent_sleep_mode_toggled(button_pressed):
Config.flags.prevent_sleep_mode = button_pressed
Config.flags.emit_signal("changed")
func _on_paste_key_pressed():
if not OS.clipboard in ['', null]:
$"%settings_api_key".text = OS.clipboard
_on_location_debounce_timeout()