mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Merge pull request #42776 from Paulb23/code_edit_draw_delay
Fixed main gutter not drawing on item toggle
This commit is contained in:
commit
bc91e088e4
@ -132,6 +132,7 @@ void CodeEdit::set_line_as_breakpoint(int p_line, bool p_breakpointed) {
|
|||||||
breakpointed_lines.erase(p_line);
|
breakpointed_lines.erase(p_line);
|
||||||
}
|
}
|
||||||
emit_signal("breakpoint_toggled", p_line);
|
emit_signal("breakpoint_toggled", p_line);
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CodeEdit::is_line_breakpointed(int p_line) const {
|
bool CodeEdit::is_line_breakpointed(int p_line) const {
|
||||||
@ -160,6 +161,7 @@ Array CodeEdit::get_breakpointed_lines() const {
|
|||||||
void CodeEdit::set_line_as_bookmarked(int p_line, bool p_bookmarked) {
|
void CodeEdit::set_line_as_bookmarked(int p_line, bool p_bookmarked) {
|
||||||
int mask = get_line_gutter_metadata(p_line, main_gutter);
|
int mask = get_line_gutter_metadata(p_line, main_gutter);
|
||||||
set_line_gutter_metadata(p_line, main_gutter, p_bookmarked ? mask | MAIN_GUTTER_BOOKMARK : mask & ~MAIN_GUTTER_BOOKMARK);
|
set_line_gutter_metadata(p_line, main_gutter, p_bookmarked ? mask | MAIN_GUTTER_BOOKMARK : mask & ~MAIN_GUTTER_BOOKMARK);
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CodeEdit::is_line_bookmarked(int p_line) const {
|
bool CodeEdit::is_line_bookmarked(int p_line) const {
|
||||||
@ -188,6 +190,7 @@ Array CodeEdit::get_bookmarked_lines() const {
|
|||||||
void CodeEdit::set_line_as_executing(int p_line, bool p_executing) {
|
void CodeEdit::set_line_as_executing(int p_line, bool p_executing) {
|
||||||
int mask = get_line_gutter_metadata(p_line, main_gutter);
|
int mask = get_line_gutter_metadata(p_line, main_gutter);
|
||||||
set_line_gutter_metadata(p_line, main_gutter, p_executing ? mask | MAIN_GUTTER_EXECUTING : mask & ~MAIN_GUTTER_EXECUTING);
|
set_line_gutter_metadata(p_line, main_gutter, p_executing ? mask | MAIN_GUTTER_EXECUTING : mask & ~MAIN_GUTTER_EXECUTING);
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CodeEdit::is_line_executing(int p_line) const {
|
bool CodeEdit::is_line_executing(int p_line) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user