Removed version form the UI.

This commit is contained in:
Relintai 2022-07-14 20:48:51 +02:00
parent bd0b210214
commit 0bae4a44e7
2 changed files with 0 additions and 22 deletions

View File

@ -165,16 +165,6 @@ text = "Settings"
icon = SubResource( 34 )
items = [ "Change Font", null, 0, false, false, 0, 0, null, "", false ]
[node name="version" type="Label" parent="FileEditorContainer/TobBar"]
margin_left = 961.0
margin_top = 4.0
margin_right = 1000.0
margin_bottom = 18.0
size_flags_horizontal = 10
custom_colors/font_color = Color( 0.121569, 0.145098, 0.192157, 1 )
text = "v1.9.0"
align = 1
[node name="SplitContainer" type="HSplitContainer" parent="FileEditorContainer"]
margin_top = 26.0
margin_right = 1000.0

View File

@ -10,8 +10,6 @@ onready var FileBTN = $FileEditorContainer/TobBar/file_btn.get_popup()
onready var PreviewBTN = $FileEditorContainer/TobBar/preview_btn.get_popup()
onready var SettingsBTN : PopupMenu = $FileEditorContainer/TobBar/SettingsBtn.get_popup()
onready var Version = $FileEditorContainer/TobBar/version
onready var SelectFontDialog : FileDialog = $SelectFontDialog
onready var FileContainer = $FileEditorContainer/SplitContainer/FileContainer
@ -70,7 +68,6 @@ func _ready():
return
clean_editor()
update_version()
connect_signals()
create_shortcuts()
load_icons()
@ -144,15 +141,6 @@ func connect_signals():
SelectFontDialog.connect("file_selected",self,"_on_font_selected")
func update_version():
var plugin_version = ""
var config = ConfigFile.new()
var err = config.load("res://addons/file-editor/plugin.cfg")
if err == OK:
plugin_version = config.get_value("plugin","version")
Version.set_text("v"+plugin_version)
func create_selected_file():
update_list()