Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2019-05-07 06:13:01 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2019-05-07 06:13:01 +0300
commitbc1ac322f8cfb664567ed180c51bc067cddf4b58 (patch)
treeccadfb4ff2ebf0d00fe213c9c263c5da67744774 /Duplicati/GUI
parent70be230c29699579d5fc56d4e1fc05365cb55ce0 (diff)
Revert "Remove unused DismissNotification method."
This reverts commit 9ab8058354d43565818bf2dc7789cf5ced6b6c95.
Diffstat (limited to 'Duplicati/GUI')
-rw-r--r--Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs
index 1ae044b67..2ebee62d4 100644
--- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs
+++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs
@@ -491,6 +491,12 @@ namespace Duplicati.GUI.TrayIcon
ExecuteAndNotify("POST", "/serverstate/resume", req);
}
+ public void DismissNotification(long id)
+ {
+ var req = new Dictionary<string, string>();
+ ExecuteAndNotify("DELETE", string.Format("/notification/{0}", Library.Utility.Uri.UrlPathEncode(id.ToString())), req);
+ }
+
public void Dispose()
{
Close();