Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions Knossos.NET/ViewModels/GlobalSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ internal bool BlDlNebula
set { if (blDlNebula != value) { this.SetProperty(ref blDlNebula, value); UnCommitedChanges = true; } }
}

private bool blAigaion = false;
internal bool BlAigaion
{
get { return blAigaion; }
set { if (blAigaion != value) { this.SetProperty(ref blAigaion, value); UnCommitedChanges = true; } }
}

private bool blTalos = false;
internal bool BlTalos
{
Expand Down Expand Up @@ -603,7 +596,6 @@ public void LoadData()

BlDlNebula = false;
BlCfNebula = false;
BlAigaion = false;
BlTalos = false;
if (Knossos.globalSettings.mirrorBlacklist != null)
{
Expand All @@ -615,10 +607,6 @@ public void LoadData()
{
BlCfNebula = true;
}
if (Knossos.globalSettings.mirrorBlacklist.Contains("aigaion.feralhosting.com"))
{
BlAigaion = true;
}
if (Knossos.globalSettings.mirrorBlacklist.Contains("talos.feralhosting.com"))
{
BlTalos = true;
Expand Down Expand Up @@ -1184,15 +1172,11 @@ internal void SaveCommand()
{
blMirrors.Add("cf.fsnebula.org");
}
if (BlAigaion)
{
blMirrors.Add("aigaion.feralhosting.com");
}
if (BlTalos)
{
blMirrors.Add("talos.feralhosting.com");
}
if (blMirrors.Any() && blMirrors.Count() != 4 /*Invalid!*/)
if (blMirrors.Any() && blMirrors.Count() != 3 /*Invalid!*/)
{
Knossos.globalSettings.mirrorBlacklist = blMirrors.ToArray();
}
Expand All @@ -1201,7 +1185,6 @@ internal void SaveCommand()
Knossos.globalSettings.mirrorBlacklist = null;
BlDlNebula = false;
BlCfNebula = false;
BlAigaion = false;
BlTalos = false;
}

Expand Down
1 change: 0 additions & 1 deletion Knossos.NET/Views/GlobalSettingsView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
<WrapPanel Grid.Column="1" Margin="8,0,0,0">
<CheckBox Margin="0,0,0,0" IsChecked="{Binding !BlDlNebula}">dl.fsnebula.org</CheckBox>
<CheckBox Margin="25,0,0,0" IsChecked="{Binding !BlCfNebula}">cf.fsnebula.org</CheckBox>
<CheckBox Margin="25,0,0,0" IsChecked="{Binding !BlAigaion}">aigaion.feralhosting.com</CheckBox>
<CheckBox Margin="25,0,0,0" IsChecked="{Binding !BlTalos}">talos.feralhosting.com</CheckBox>
</WrapPanel>
</Grid>
Expand Down