Skip to content
Snippets Groups Projects
Commit e29b0c82 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't autoscroll if window is not shown (this speeds up things a lot on Mac)

parent 50e41d70
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ messageWindow::messageWindow(int deltaFontSize) ...@@ -111,7 +111,7 @@ messageWindow::messageWindow(int deltaFontSize)
void messageWindow::add(const char *msg) void messageWindow::add(const char *msg)
{ {
browser->add(msg, 0); browser->add(msg, 0);
if(CTX::instance()->msgAutoScroll) if(win->shown() && CTX::instance()->msgAutoScroll)
browser->bottomline(browser->size()); browser->bottomline(browser->size());
} }
...@@ -138,6 +138,9 @@ void messageWindow::save(const char *filename) ...@@ -138,6 +138,9 @@ void messageWindow::save(const char *filename)
void messageWindow::show(bool redrawOnly) void messageWindow::show(bool redrawOnly)
{ {
if(CTX::instance()->msgAutoScroll)
browser->bottomline(browser->size());
if(win->shown() && redrawOnly) if(win->shown() && redrawOnly)
win->redraw(); win->redraw();
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment