- Grundig: added support for dvb*_config.xml channel lists

- experimental feature to allow editing Audio-PID (but turned out to have no effect for webOS 5)
This commit is contained in:
Horst Beham
2021-01-02 13:18:37 +01:00
parent dc1e6e7f9a
commit 7fc413e64d
11 changed files with 589 additions and 16 deletions

View File

@@ -310,6 +310,7 @@ namespace ChanSort.Ui
//this.SetControlsEnabled(!this.dataRoot.IsEmpty);
this.UpdateFavoritesEditor(this.DataRoot.SupportedFavorites);
this.colEncrypted.OptionsColumn.AllowEdit = this.currentTvSerializer.Features.EncryptedFlagEdit;
this.colAudioPid.OptionsColumn.AllowEdit = this.currentTvSerializer.Features.CanEditAudioPid;
this.UpdateMenu(true);
if (this.DataRoot.Warnings.Length > 0 && this.miShowWarningsAfterLoad.Checked)
@@ -1735,26 +1736,26 @@ namespace ChanSort.Ui
return;
}
try
foreach (var dataFilePath in this.currentTvSerializer.GetDataFilePaths())
{
foreach (var dataFilePath in this.currentTvSerializer.GetDataFilePaths())
bakFile = dataFilePath + ".bak";
try
{
bakFile = dataFilePath + ".bak";
File.Copy(bakFile, dataFilePath, true);
var attr = File.GetAttributes(dataFilePath);
File.SetAttributes(dataFilePath, attr & ~FileAttributes.ReadOnly);
}
catch (Exception)
{
XtraMessageBox.Show(this, string.Format(Resources.MainForm_miRestoreOriginal_Message, dataFilePath),
this.miRestoreOriginal.Caption,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
this.currentTvSerializer.DataRoot.NeedsSaving = false;
if (this.currentPlugin != null)
this.LoadFiles(this.currentPlugin, this.currentTvFile);
}
catch (Exception)
{
XtraMessageBox.Show(this, string.Format(Resources.MainForm_miRestoreOriginal_Message, this.currentTvFile),
this.miRestoreOriginal.Caption,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
this.currentTvSerializer.DataRoot.NeedsSaving = false;
if (this.currentPlugin != null)
this.LoadFiles(this.currentPlugin, this.currentTvFile);
}
#endregion