Skip to content

Commit

Permalink
MP1-5181: MPEI: Add platform compatiblity check option to the applica…
Browse files Browse the repository at this point in the history
…tion settings
  • Loading branch information
epbk committed Nov 10, 2023
1 parent 776dcc8 commit 9d0b8b0
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 166 deletions.
2 changes: 2 additions & 0 deletions mediaportal/MPE/MpeCore/Classes/ApplicationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public ApplicationSettings()
IgnoredUpdates = new List<string>();
ExpandTile = false;
ExpandTileFullWidth = false;
PlatformCompatibilityCheck = true;
}

public DateTime LastUpdate { get; set; }
Expand All @@ -65,6 +66,7 @@ public ApplicationSettings()
public bool ExpandTile { get; set; }
public bool ExpandTileFullWidth { get; set; }
public Size FormSize { get; set; }
public bool PlatformCompatibilityCheck { get; set; }

public void Save()
{
Expand Down
338 changes: 176 additions & 162 deletions mediaportal/MPE/MpeInstaller/Dialogs/SettingsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions mediaportal/MPE/MpeInstaller/Dialogs/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,17 @@ private void chk_update_CheckedChanged(object sender, EventArgs e)
chk_updateExtension.Enabled = chk_update.Checked;
if (!chk_updateExtension.Enabled) chk_updateExtension.Checked = false;
}

private void chk_PlatformCompatibility_CheckedChanged(object sender, EventArgs e)
{
if (!chk_PlatformCompatibility.Checked)
{
if (MessageBox.Show("Disable platform compatibility check will allow to install not compatible extensions. ","Warning",
MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) != DialogResult.OK)
{
chk_PlatformCompatibility.Checked = true;
}
}
}
}
}
Loading

0 comments on commit 9d0b8b0

Please sign in to comment.