1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-07 17:34:06 +02:00

Add notification Form title changing with enqueued tweets

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

View File

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