浏览代码

Merge pull request #109673 from Giganzo/debug-hover

Fix missing hover style for Ignore Error breaks button
Thaddeus Crews 3 周之前
父节点
当前提交
42b4eab5e9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/debugger/script_editor_debugger.cpp

+ 2 - 2
editor/debugger/script_editor_debugger.cpp

@@ -2011,10 +2011,10 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
 		skip_breakpoints->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_skip_breakpoints));
 
 		ignore_error_breaks = memnew(Button);
-		ignore_error_breaks->set_flat(true);
+		ignore_error_breaks->set_theme_type_variation(SceneStringName(FlatButton));
 		ignore_error_breaks->set_tooltip_text(TTR("Ignore Error Breaks"));
 		hbc->add_child(ignore_error_breaks);
-		ignore_error_breaks->connect("pressed", callable_mp(this, &ScriptEditorDebugger::debug_ignore_error_breaks));
+		ignore_error_breaks->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_ignore_error_breaks));
 
 		hbc->add_child(memnew(VSeparator));