Skip to content

Commit

Permalink
Spelling Error Fixes, Server sometimes can stop running.
Browse files Browse the repository at this point in the history
  • Loading branch information
TWhidden committed Oct 10, 2018
1 parent f2419f3 commit 20d2d84
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 127 deletions.
2 changes: 1 addition & 1 deletion HolidayShow.Data/SettingKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SettingKeys
public const string OffAt = "TimeOffAt";
public const string AudioOnAt = "AudioTimeOnAt";
public const string AudioOffAt = "AudioTimeOffAt";
public const string IsDanagerEnabled = "IsDangerEnabled";
public const string IsDangerEnabled = "IsDangerEnabled";
public const string IsAudioEnabled = "IsAudioEnabled";
public const string FileBasePath = "FileBasePath";
public const string Refresh = "Refresh";
Expand Down
6 changes: 3 additions & 3 deletions HolidayShowEditor/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,19 @@ public bool IsDangerEnabled
get
{
var option =
_dbDataContext.Context.Settings.Where(x => x.SettingName == SettingKeys.IsDanagerEnabled)
_dbDataContext.Context.Settings.Where(x => x.SettingName == SettingKeys.IsDangerEnabled)
.Select(x => x.ValueDouble)
.FirstOrDefault();
return ((int)option == 1);
}
set
{
var option = _dbDataContext.Context.Settings.FirstOrDefault(x => x.SettingName == SettingKeys.IsDanagerEnabled);
var option = _dbDataContext.Context.Settings.FirstOrDefault(x => x.SettingName == SettingKeys.IsDangerEnabled);
if (option == null)
{
option = new Settings()
{
SettingName = SettingKeys.IsDanagerEnabled,
SettingName = SettingKeys.IsDangerEnabled,
ValueString = string.Empty
};
_dbDataContext.Context.Settings.Add(option);
Expand Down
6 changes: 3 additions & 3 deletions HolidayShowServer.Core/HolidayShowServer.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<Authors>Travis Whidden</Authors>
<Company>None</Company>
<AssemblyName>holidayshowserver.core</AssemblyName>
<AssemblyVersion>2.18.1007.0</AssemblyVersion>
<FileVersion>2.18.0924.0</FileVersion>
<AssemblyVersion>2.18.1009.0</AssemblyVersion>
<FileVersion>2.18.1009.0</FileVersion>
<Configurations>Debug;Release;ReleaseCore</Configurations>
<Version>2.18.1007</Version>
<Version>2.18.1009</Version>
<PackageReleaseNotes>Reduced Database calls to reduce CPU. Code cleanup</PackageReleaseNotes>
</PropertyGroup>

Expand Down
Loading

0 comments on commit 20d2d84

Please sign in to comment.