small usability improvement, change everything related to resolution and scaling together in the project settings, closes #1974
This commit is contained in:
parent
7a931b4d3a
commit
d5b8131f27
1 changed files with 13 additions and 2 deletions
|
@ -701,9 +701,20 @@ void ProjectSettings::_save() {
|
|||
|
||||
void ProjectSettings::_settings_prop_edited(const String& p_name) {
|
||||
|
||||
if (!Globals::get_singleton()->is_persisting(p_name)) {
|
||||
String full_item = globals_editor->get_full_item_path(p_name);
|
||||
String full_item = globals_editor->get_full_item_path(p_name);
|
||||
|
||||
if (!Globals::get_singleton()->is_persisting(full_item)) {
|
||||
Globals::get_singleton()->set_persisting(full_item,true);
|
||||
|
||||
{
|
||||
//small usability workaround, if anything related to resolution scaling or size is modified, change all of them together
|
||||
if (full_item=="display/width" || full_item=="display/height" || full_item=="display/stretch_mode") {
|
||||
Globals::get_singleton()->set_persisting("display/height",true);
|
||||
Globals::get_singleton()->set_persisting("display/width",true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// globals_editor->update_property(p_name);
|
||||
globals_editor->get_property_editor()->update_tree();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue