1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-14 12:16:59 +02:00

Add notification Form title changing with enqueued tweets

This commit is contained in:
2016-04-25 16:12:58 +02:00
parent ddbf6da061
commit dd4c89b9dd

@@ -114,6 +114,7 @@ namespace TweetDck.Core{
MoveToVisibleLocation(); MoveToVisibleLocation();
tweetQueue.Enqueue(notification); tweetQueue.Enqueue(notification);
UpdateTitle();
if (!timerProgress.Enabled){ if (!timerProgress.Enabled){
LoadNextNotification(); LoadNextNotification();
@@ -156,6 +157,8 @@ namespace TweetDck.Core{
totalTime = timeLeft = tweet.GetDisplayDuration(Program.UserConfig.NotificationDuration); totalTime = timeLeft = tweet.GetDisplayDuration(Program.UserConfig.NotificationDuration);
timerProgress.Stop(); timerProgress.Stop();
timerProgress.Start(); timerProgress.Start();
UpdateTitle();
} }
private void MoveToVisibleLocation(){ private void MoveToVisibleLocation(){
@@ -213,5 +216,9 @@ namespace TweetDck.Core{
// TODO if (ownerHadFocus)owner.Focus(); // TODO if (ownerHadFocus)owner.Focus();
} }
} }
private void UpdateTitle(){
Text = tweetQueue.Count > 0 ? Program.BrandName+" ("+tweetQueue.Count+" more left)" : Program.BrandName;
}
} }
} }