Don't register TerminalSettings resource

Not currently used, but showing in every single 'new resource' menu (the
menu that is displayed after clicking on an empty resource slot).
This commit is contained in:
Leroy Hopson 2021-10-16 11:23:58 +07:00
parent c431de1282
commit 04e07ec9a7
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 2 additions and 3 deletions

View file

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
[Unreleased]: https://github.com/lihop/godot-xterm/compare/v2.0.0...HEAD [Unreleased]: https://github.com/lihop/godot-xterm/compare/v2.0.0...HEAD
### Removed
- TerminalSettings resource. Not currently used, and was showing up in every 'new resource' menu that is displayed after clicking on an empty Resource slot.
## [v2.0.0] - 2021-07-25 ## [v2.0.0] - 2021-07-25

View file

@ -29,8 +29,6 @@ func _enter_tree():
"X11", "Server", "OSX": "X11", "Server", "OSX":
pty_script = load("%s/nodes/pty/pty.gd" % base_dir) pty_script = load("%s/nodes/pty/pty.gd" % base_dir)
add_custom_type("PTY", "Node", pty_script, pty_icon) add_custom_type("PTY", "Node", pty_script, pty_icon)
var terminal_settings_script = preload("./editor_plugins/terminal/settings/terminal_settings.gd")
add_custom_type("TerminalSettings", "Resource", terminal_settings_script, null)
terminal_panel = preload("./editor_plugins/terminal/terminal_panel.tscn").instance() terminal_panel = preload("./editor_plugins/terminal/terminal_panel.tscn").instance()
terminal_panel.editor_plugin = self terminal_panel.editor_plugin = self
terminal_panel.editor_interface = get_editor_interface() terminal_panel.editor_interface = get_editor_interface()
@ -49,6 +47,5 @@ func _exit_tree():
if pty_supported: if pty_supported:
remove_custom_type("PTY") remove_custom_type("PTY")
remove_custom_type("TerminalSettings")
remove_control_from_bottom_panel(terminal_panel) remove_control_from_bottom_panel(terminal_panel)
terminal_panel.free() terminal_panel.free()