mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Making the initial stuff working, getting an installer, when running from VS.
This commit is contained in:
parent
a63bf734d4
commit
57e2044839
1023 changed files with 20896 additions and 19456 deletions
|
@ -139,20 +139,15 @@ namespace ExternalCommand {
|
|||
/// </summary>
|
||||
/// <param name="property">The property to return a default for</param>
|
||||
/// <returns>object with the default value for the supplied property</returns>
|
||||
public override object GetDefault(string property) {
|
||||
switch(property) {
|
||||
case nameof(DeletedBuildInCommands):
|
||||
return new List<string>();
|
||||
case nameof(Commands):
|
||||
return new List<string>();
|
||||
case nameof(Commandline):
|
||||
return new Dictionary<string, string>();
|
||||
case nameof(Argument):
|
||||
return new Dictionary<string, string>();
|
||||
case nameof(RunInbackground):
|
||||
return new Dictionary<string, bool>();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public override object GetDefault(string property) =>
|
||||
property switch
|
||||
{
|
||||
nameof(DeletedBuildInCommands) => (object) new List<string>(),
|
||||
nameof(Commands) => new List<string>(),
|
||||
nameof(Commandline) => new Dictionary<string, string>(),
|
||||
nameof(Argument) => new Dictionary<string, string>(),
|
||||
nameof(RunInbackground) => new Dictionary<string, bool>(),
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue