summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-03 19:47:07 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-03 19:47:07 -0300
commitd5b8131f27a302992f5910e18ccf07f5eff244e3 (patch)
treecbcb718d3b85c327a82f2d7ac43d2cba965382e1 /tools/editor
parent7a931b4d3acc5571223e9954142f4d9548cf7ead (diff)
small usability improvement, change everything related to resolution and scaling together in the project settings, closes #1974
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/project_settings.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/editor/project_settings.cpp b/tools/editor/project_settings.cpp
index 370b91cbba..b61fcfa780 100644
--- a/tools/editor/project_settings.cpp
+++ b/tools/editor/project_settings.cpp
@@ -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();
}