mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
ec6a0e6b7f
Added SetValue to ConfigFileProvider. Added creating of default config file in ConfigFileProvider. Added more ConfigFileProvider tests. Added UI for Settings/System
21 lines
No EOL
602 B
C#
21 lines
No EOL
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace NzbDrone.Web.Models
|
|
{
|
|
public class SystemSettingsModel
|
|
{
|
|
[DisplayName("Port")]
|
|
[Description("Port that NzbDrone runs on")]
|
|
[Range(1, 65535, ErrorMessage = "Port must be between 1 and 65535")]
|
|
public int Port { get; set; }
|
|
|
|
[DisplayName("Launch Browser")]
|
|
[Description("Start default webrowser when NzbDrone starts?")]
|
|
public bool LaunchBrowser { get; set; }
|
|
}
|
|
} |