mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-11 11:34:07 +02:00
Add a WIP sound notification hook
This commit is contained in:
parent
1c3a7b6ce7
commit
1f6fc491ef
@ -201,6 +201,10 @@ public void OnTweetPopup(TweetNotification tweet){
|
||||
notification.ShowNotification(tweet);
|
||||
}
|
||||
|
||||
public void OnTweetSound(){
|
||||
|
||||
}
|
||||
|
||||
public void BeginUpdateProcess(string versionTag, string downloadUrl){
|
||||
Hide();
|
||||
|
||||
|
@ -65,7 +65,9 @@ public void OnTweetPopup(string tweetHtml, int tweetCharacters){
|
||||
}
|
||||
|
||||
public void OnTweetSound(){
|
||||
Log("sound"); // TODO
|
||||
form.InvokeSafe(() => {
|
||||
form.OnTweetSound();
|
||||
});
|
||||
}
|
||||
|
||||
public void OnUpdateAccepted(string versionTag, string downloadUrl){
|
||||
|
@ -235,6 +235,13 @@
|
||||
$TD.setLastRightClickedLink($(this).attr("data-full-url") || "");
|
||||
});
|
||||
|
||||
//
|
||||
// Block: Hook into the notification sound effect.
|
||||
//
|
||||
document.getElementById("update-sound").play = function(){
|
||||
$TD.onTweetSound();
|
||||
};
|
||||
|
||||
//
|
||||
// Block: Hook into mp4 video element clicking
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user