From b77c7bbf1b2cfbeb27bd62446361c06197215716 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 17 Oct 2020 14:10:04 +0200 Subject: [PATCH] Improved redraw efficiency --- source/Connection.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Connection.d b/source/Connection.d index 6d9b31f..518b9a6 100644 --- a/source/Connection.d +++ b/source/Connection.d @@ -67,7 +67,7 @@ public final class Connection : Thread gui.mainWindow.showAll(); process(notificationData); - gui.mainWindow.showAll(); + //gui.mainWindow.showAll(); tl(); @@ -111,12 +111,14 @@ public final class Connection : Thread { string username = cast(string)data[2..data.length]; textArea.add(new Label(("<-- "~username~" left the channel"))); + textArea.showAll(); } /* If the notification was join (stype=1) */ else if(subType == 1) { string username = cast(string)data[2..data.length]; textArea.add(new Label(("--> "~username~" joined the channel"))); + textArea.showAll(); } /* TODO: Unknown */ else @@ -151,7 +153,7 @@ public final class Connection : Thread foreach(string channel; channelList) { channels.add(new Label(channel)); - gui.mainWindow.showAll(); + channels.showAll(); } }