- added function to mark a channel for swapping + swap with current channel

- replaced misuse of "FileLoadException" with a custom LoaderException to handle file loading issues with better continue/fail logic
- removed "Save As" and replaced it with "Convert list" menu item that shows information on how to use a reference list instead of direct conversion
This commit is contained in:
Horst Beham
2022-11-29 14:58:00 +01:00
parent 4a1a39b1e7
commit a39d8f7d18
10 changed files with 0 additions and 10 deletions

View File

@@ -36,7 +36,6 @@ namespace ChanSort.Api
public bool CanHaveGaps { get; set; } = true;
public bool EncryptedFlagEdit { get; set; }
public DeleteMode DeleteMode { get; set; } = DeleteMode.NotSupported;
public bool CanSaveAs { get; set; } = true;
public FavoritesMode FavoritesMode

View File

@@ -44,7 +44,6 @@ namespace ChanSort.Loader.Android
this.Features.CanLockChannels = true;
this.Features.CanHideChannels = true;
this.Features.DeleteMode = DeleteMode.Physically;
this.Features.CanSaveAs = true;
this.Features.CanHaveGaps = true; // at least the DVB-S Data list had gaps
this.Features.FavoritesMode = FavoritesMode.OrderedPerSource;
this.Features.MaxFavoriteLists = 1;

View File

@@ -40,7 +40,6 @@ namespace ChanSort.Loader.Enigma2
this.Features.CanHideChannels = false;
this.Features.FavoritesMode = FavoritesMode.MixedSource;
this.Features.MaxFavoriteLists = 0; // dynamically added
this.Features.CanSaveAs = false;
this.channels.IsMixedSourceFavoritesList = true;
this.DataRoot.AddChannelList(this.channels);

View File

@@ -31,7 +31,6 @@ namespace ChanSort.Loader.Grundig
this.Features.CanLockChannels = true;
this.Features.CanHideChannels = true;
this.Features.DeleteMode = DeleteMode.Physically;
this.Features.CanSaveAs = false;
this.Features.AllowGapsInFavNumbers = false;
this.Features.CanEditFavListNames = false;
this.Features.FavoritesMode = FavoritesMode.OrderedPerSource;

View File

@@ -28,7 +28,6 @@ namespace ChanSort.Loader.GlobalClone
this.Features.DeleteMode = DeleteMode.NotSupported; //.FlagWithoutPrNr;
this.Features.ChannelNameEdit = ChannelNameEditMode.All;
this.Features.FavoritesMode = FavoritesMode.None;
this.Features.CanSaveAs = true;
this.Features.CanHaveGaps = true;
this.Features.CanHideChannels = true;
this.Features.CanSkipChannels = true;

View File

@@ -27,7 +27,6 @@ namespace ChanSort.Loader.GlobalClone
this.Features.ChannelNameEdit = ChannelNameEditMode.All;
this.Features.DeleteMode = DeleteMode.FlagWithoutPrNr;
this.Features.CanHaveGaps = true;
this.Features.CanSaveAs = true;
this.Features.CanSkipChannels = true;
this.Features.CanLockChannels = true;
this.Features.CanHideChannels = true;

View File

@@ -154,7 +154,6 @@ internal class IdtvChannelSerializer : SerializerBase
dbFile = Path.Combine(dir, "tv.db");
binFile = Path.Combine(dir, "channel", "idtvChannel.bin");
this.Features.CanSaveAs = false;
this.Features.FavoritesMode = FavoritesMode.Flags;
this.Features.DeleteMode = DeleteMode.FlagWithPrNr;

View File

@@ -41,7 +41,6 @@ namespace ChanSort.Loader.Panasonic
this.Features.CanLockChannels = false;
this.Features.CanHideChannels = false;
this.Features.DeleteMode = DeleteMode.NotSupported;
this.Features.CanSaveAs = true;
this.Features.AllowGapsInFavNumbers = true;
this.Features.CanEditFavListNames = false;

View File

@@ -76,7 +76,6 @@ namespace ChanSort.Loader.Philips
this.Features.CanLockChannels = true;
this.Features.CanHideChannels = false;
this.Features.DeleteMode = DeleteMode.NotSupported;
this.Features.CanSaveAs = false;
this.Features.CanHaveGaps = false;
this.Features.FavoritesMode = FavoritesMode.Flags; // satellite favorites are stored in a separate file that may support independent sorting, but DVB C/T only have a flag
this.Features.MaxFavoriteLists = 1; // Map45 format will change this

View File

@@ -106,7 +106,6 @@ namespace ChanSort.Loader.Philips
this.Features.CanLockChannels = true;
this.Features.CanHideChannels = true;
this.Features.DeleteMode = DeleteMode.NotSupported;
this.Features.CanSaveAs = false;
this.Features.AllowGapsInFavNumbers = false;
this.Features.CanEditFavListNames = true;