You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -119,7 +119,7 @@ String TextEditor::get_name() {
|
||||
if (text_file->get_path().find("local://") == -1 && text_file->get_path().find("::") == -1) {
|
||||
name = text_file->get_path().get_file();
|
||||
if (is_unsaved()) {
|
||||
if (text_file->get_path().empty()) {
|
||||
if (text_file->get_path().is_empty()) {
|
||||
name = TTR("[unsaved]");
|
||||
}
|
||||
name += "(*)";
|
||||
@@ -242,7 +242,7 @@ void TextEditor::apply_code() {
|
||||
bool TextEditor::is_unsaved() {
|
||||
const bool unsaved =
|
||||
code_editor->get_text_editor()->get_version() != code_editor->get_text_editor()->get_saved_version() ||
|
||||
text_file->get_path().empty(); // In memory.
|
||||
text_file->get_path().is_empty(); // In memory.
|
||||
return unsaved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user