mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-31 08:34:10 +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();
|
MoveToVisibleLocation();
|
||||||
|
|
||||||
tweetQueue.Enqueue(notification);
|
tweetQueue.Enqueue(notification);
|
||||||
|
UpdateTitle();
|
||||||
|
|
||||||
if (!timerProgress.Enabled){
|
if (!timerProgress.Enabled){
|
||||||
LoadNextNotification();
|
LoadNextNotification();
|
||||||
@ -156,6 +157,8 @@ private void LoadNextNotification(){
|
|||||||
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 @@ private void MoveToVisibleLocation(){
|
|||||||
// 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user