diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2019-05-07 06:13:01 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2019-05-07 06:13:01 +0300 |
commit | bc1ac322f8cfb664567ed180c51bc067cddf4b58 (patch) | |
tree | ccadfb4ff2ebf0d00fe213c9c263c5da67744774 /Duplicati/GUI | |
parent | 70be230c29699579d5fc56d4e1fc05365cb55ce0 (diff) |
Revert "Remove unused DismissNotification method."
This reverts commit 9ab8058354d43565818bf2dc7789cf5ced6b6c95.
Diffstat (limited to 'Duplicati/GUI')
-rw-r--r-- | Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs | 6 |
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();
|