mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-03-06 04:00:42 +01:00
2021-05-01
- added "Settings / Reset to defaults and restart" function to delete the stored customized settings in case something went wrong (like massively oversized column widths) - Philips ChannelMap\_30: fixed error when trying to save this type of list - Upgraded to DevExpress WinForms 20.2.7 user interface library
This commit is contained in:
@@ -308,24 +308,19 @@ order by s.ntype,major_channel
|
||||
using (var conn = new SqliteConnection(channelConnString))
|
||||
{
|
||||
conn.Open();
|
||||
using (var cmd = conn.CreateCommand())
|
||||
{
|
||||
using (var trans = conn.BeginTransaction())
|
||||
{
|
||||
cmd.Transaction = trans;
|
||||
this.WriteChannels(cmd, this.avbtChannels);
|
||||
this.WriteChannels(cmd, this.avbcChannels);
|
||||
this.WriteChannels(cmd, this.dvbtChannels);
|
||||
this.WriteChannels(cmd, this.dvbcChannels);
|
||||
this.WriteChannels(cmd, this.dvbsChannels);
|
||||
this.WriteChannels(cmd, this.satipChannels);
|
||||
this.WriteChannels(cmd, this.freesatChannels);
|
||||
trans.Commit();
|
||||
}
|
||||
using var trans = conn.BeginTransaction();
|
||||
using var cmd = conn.CreateCommand();
|
||||
this.WriteChannels(cmd, this.avbtChannels);
|
||||
this.WriteChannels(cmd, this.avbcChannels);
|
||||
this.WriteChannels(cmd, this.dvbtChannels);
|
||||
this.WriteChannels(cmd, this.dvbcChannels);
|
||||
this.WriteChannels(cmd, this.dvbsChannels);
|
||||
this.WriteChannels(cmd, this.satipChannels);
|
||||
this.WriteChannels(cmd, this.freesatChannels);
|
||||
trans.Commit();
|
||||
|
||||
cmd.Transaction = null;
|
||||
this.RepairCorruptedDatabaseImage(cmd);
|
||||
}
|
||||
cmd.Transaction = null;
|
||||
this.RepairCorruptedDatabaseImage(cmd);
|
||||
}
|
||||
|
||||
this.WriteCypheredFile();
|
||||
|
||||
Reference in New Issue
Block a user