You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Merge pull request #10368 from RandomShaper/rename-layouts-file
Rename layouts file to editor_layouts-3.cfg
This commit is contained in:
@@ -1303,7 +1303,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||||||
|
|
||||||
Ref<ConfigFile> config;
|
Ref<ConfigFile> config;
|
||||||
config.instance();
|
config.instance();
|
||||||
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
|
|
||||||
if (err == ERR_CANT_OPEN) {
|
if (err == ERR_CANT_OPEN) {
|
||||||
config.instance(); // new config
|
config.instance(); // new config
|
||||||
@@ -1314,7 +1314,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||||||
|
|
||||||
_save_docks_to_config(config, p_file);
|
_save_docks_to_config(config, p_file);
|
||||||
|
|
||||||
config->save(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
config->save(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
|
|
||||||
layout_dialog->hide();
|
layout_dialog->hide();
|
||||||
_update_layouts_menu();
|
_update_layouts_menu();
|
||||||
@@ -1331,7 +1331,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||||||
|
|
||||||
Ref<ConfigFile> config;
|
Ref<ConfigFile> config;
|
||||||
config.instance();
|
config.instance();
|
||||||
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
|
|
||||||
if (err != OK || !config->has_section(p_file)) {
|
if (err != OK || !config->has_section(p_file)) {
|
||||||
show_warning(TTR("Layout name not found!"));
|
show_warning(TTR("Layout name not found!"));
|
||||||
@@ -1345,7 +1345,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||||||
config->set_value(p_file, E->get(), Variant());
|
config->set_value(p_file, E->get(), Variant());
|
||||||
}
|
}
|
||||||
|
|
||||||
config->save(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
config->save(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
|
|
||||||
layout_dialog->hide();
|
layout_dialog->hide();
|
||||||
_update_layouts_menu();
|
_update_layouts_menu();
|
||||||
@@ -4331,7 +4331,7 @@ void EditorNode::_update_layouts_menu() {
|
|||||||
|
|
||||||
Ref<ConfigFile> config;
|
Ref<ConfigFile> config;
|
||||||
config.instance();
|
config.instance();
|
||||||
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
if (err != OK) {
|
if (err != OK) {
|
||||||
return; //no config
|
return; //no config
|
||||||
}
|
}
|
||||||
@@ -4379,7 +4379,7 @@ void EditorNode::_layout_menu_option(int p_id) {
|
|||||||
|
|
||||||
Ref<ConfigFile> config;
|
Ref<ConfigFile> config;
|
||||||
config.instance();
|
config.instance();
|
||||||
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts.cfg"));
|
Error err = config->load(EditorSettings::get_singleton()->get_settings_path().plus_file("editor_layouts-3.cfg"));
|
||||||
if (err != OK) {
|
if (err != OK) {
|
||||||
return; //no config
|
return; //no config
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user