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:
parent
ddbf6da061
commit
dd4c89b9dd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user