mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix History Dock default state
This commit is contained in:
parent
36d90c73a8
commit
07b300bcb5
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,7 @@ HistoryDock::HistoryDock() {
|
||||||
current_scene_checkbox->set_text(TTR("Scene"));
|
current_scene_checkbox->set_text(TTR("Scene"));
|
||||||
current_scene_checkbox->set_h_size_flags(SIZE_EXPAND_FILL);
|
current_scene_checkbox->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
current_scene_checkbox->set_clip_text(true);
|
current_scene_checkbox->set_clip_text(true);
|
||||||
|
current_scene_checkbox->set_pressed(true);
|
||||||
current_scene_checkbox->connect(SceneStringName(toggled), callable_mp(this, &HistoryDock::refresh_history).unbind(1));
|
current_scene_checkbox->connect(SceneStringName(toggled), callable_mp(this, &HistoryDock::refresh_history).unbind(1));
|
||||||
|
|
||||||
global_history_checkbox = memnew(CheckBox);
|
global_history_checkbox = memnew(CheckBox);
|
||||||
|
@ -261,6 +262,7 @@ HistoryDock::HistoryDock() {
|
||||||
global_history_checkbox->set_text(TTR("Global"));
|
global_history_checkbox->set_text(TTR("Global"));
|
||||||
global_history_checkbox->set_h_size_flags(SIZE_EXPAND_FILL);
|
global_history_checkbox->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
global_history_checkbox->set_clip_text(true);
|
global_history_checkbox->set_clip_text(true);
|
||||||
|
global_history_checkbox->set_pressed(true);
|
||||||
global_history_checkbox->connect(SceneStringName(toggled), callable_mp(this, &HistoryDock::refresh_history).unbind(1));
|
global_history_checkbox->connect(SceneStringName(toggled), callable_mp(this, &HistoryDock::refresh_history).unbind(1));
|
||||||
|
|
||||||
action_list = memnew(ItemList);
|
action_list = memnew(ItemList);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue