mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Added Growl Settings to GUI.
This commit is contained in:
parent
ee90564519
commit
be64822f08
6 changed files with 78 additions and 2 deletions
|
@ -173,7 +173,12 @@ namespace NzbDrone.Web.Controllers
|
|||
SmtpToAddresses = _configProvider.SmtpToAddresses,
|
||||
TwitterEnabled = _externalNotificationProvider.GetSettings(typeof(Twitter)).Enable,
|
||||
TwitterNotifyOnGrab = _configProvider.TwitterNotifyOnGrab,
|
||||
TwitterNotifyOnDownload = _configProvider.TwitterNotifyOnDownload
|
||||
TwitterNotifyOnDownload = _configProvider.TwitterNotifyOnDownload,
|
||||
GrowlEnabled = _externalNotificationProvider.GetSettings(typeof(Growl)).Enable,
|
||||
GrowlNotifyOnGrab = _configProvider.GrowlNotifyOnGrab,
|
||||
GrowlNotifyOnDownload = _configProvider.GrowlNotifyOnDownload,
|
||||
GrowlHost = _configProvider.GrowlHost,
|
||||
GrowlPassword = _configProvider.GrowlPassword
|
||||
};
|
||||
|
||||
return View(model);
|
||||
|
@ -469,6 +474,16 @@ namespace NzbDrone.Web.Controllers
|
|||
_configProvider.TwitterNotifyOnGrab = data.TwitterNotifyOnGrab;
|
||||
_configProvider.TwitterNotifyOnDownload = data.TwitterNotifyOnDownload;
|
||||
|
||||
//Growl
|
||||
var growlSettings = _externalNotificationProvider.GetSettings(typeof(Growl));
|
||||
growlSettings.Enable = data.GrowlEnabled;
|
||||
_externalNotificationProvider.SaveSettings(growlSettings);
|
||||
|
||||
_configProvider.GrowlNotifyOnGrab = data.GrowlNotifyOnGrab;
|
||||
_configProvider.GrowlNotifyOnDownload = data.GrowlNotifyOnDownload;
|
||||
_configProvider.GrowlHost = data.GrowlHost;
|
||||
_configProvider.GrowlPassword = data.GrowlPassword;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue