Commit a2cd273c authored by Roman Alifanov's avatar Roman Alifanov

errordialog: adequate text insertion

parent ccb9495b
......@@ -19,9 +19,8 @@ class ErrorDialog(Adw.Dialog):
self.gh_button.connect("activated", self.on_gh_clicked)
def append_log(self, text):
GLib.idle_add(self.textbuffer.insert_at_cursor, text)
GLib.idle_add(self.textview.scroll_to_mark,
self.textbuffer.get_insert(), 0, False, 0.0, 1.0)
self.textbuffer.set_text(text)
self.textview.scroll_to_mark(self.textbuffer.get_insert(), 0, False, 0.0, 1.0) # Прокручиваем к курсору
def present_error(self, win, error):
self.error = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment