mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use queue_draw
This commit is contained in:
parent
1eb4bb2075
commit
ec86a9ecd0
1 changed files with 3 additions and 3 deletions
|
|
@ -310,8 +310,8 @@ impl Reader {
|
|||
// Show tooltip | @TODO set_gutter option?
|
||||
gobject.set_tooltip_text(Some(uri.to_string().as_str()));
|
||||
|
||||
// Any signal required to apply changes immediately @TODO power safe issue?
|
||||
gobject.emit_toggle_overwrite();
|
||||
// Redraw required to apply changes immediately
|
||||
gobject.queue_draw();
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
@ -321,7 +321,7 @@ impl Reader {
|
|||
// Restore defaults
|
||||
gobject.set_cursor_from_name(Some("text"));
|
||||
gobject.set_tooltip_text(None);
|
||||
gobject.emit_toggle_overwrite();
|
||||
gobject.queue_draw();
|
||||
}
|
||||
}); // @TODO may be expensive for CPU, add timeout?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue