Skip to content

Commit

Permalink
Merge pull request #30 from fenix-hub/dev
Browse files Browse the repository at this point in the history
Update to 1.7.8
  • Loading branch information
fenix-hub authored Oct 18, 2020
2 parents e0e6426 + c9250fa commit 6331dd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/file-editor/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="File Editor"
description="An internal file editor to view and edit text files in your project folder."
author="Nicolo 'fenix' Santilio"
version="1.7.7"
version="1.7.8"
script="scripts/file-editor.gd"
3 changes: 2 additions & 1 deletion addons/file-editor/scripts/FileEditor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ var current_csv_editor : Control
var current_font : DynamicFont

func _ready():
if not Engine.is_editor_hint():
return
clean_editor()
update_version()
connect_signals()
Expand Down Expand Up @@ -167,7 +169,6 @@ func update_version():
if err == OK:
plugin_version = config.get_value("plugin","version")
Version.set_text("v"+plugin_version)
print(plugin_version)

func create_selected_file():
update_list()
Expand Down
2 changes: 1 addition & 1 deletion addons/file-editor/scripts/LastOpenedFiles.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extends Node

const lastopenedfile_path : String = "res://addons/file-editor/lastopenedfiles.lastcfg"

var editor_plugin : EditorPlugin = EditorPlugin.new()

func _ready():
pass
Expand Down Expand Up @@ -44,4 +43,5 @@ func store_editor_fonts(file_name : String, font_path : String):
file.save(lastopenedfile_path)

func get_editor_font():
var editor_plugin : EditorPlugin = EditorPlugin.new()
return editor_plugin.get_editor_interface().get_editor_settings().get_setting("interface/editor/code_font")

0 comments on commit 6331dd6

Please sign in to comment.