mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools: small glitch - when renaming user defined encoder,
cuetools wav encoder dissapeared (changed extension)
This commit is contained in:
@@ -136,7 +136,13 @@ namespace CUETools.Processor
|
|||||||
public string Extension
|
public string Extension
|
||||||
{
|
{
|
||||||
get { return extension; }
|
get { return extension; }
|
||||||
set { if (extension == value) return; extension = value; if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Extension")); }
|
set
|
||||||
|
{
|
||||||
|
if (extension == value) return;
|
||||||
|
if (type != null && type != typeof(UserDefinedWriter)) throw new InvalidOperationException();
|
||||||
|
extension = value;
|
||||||
|
if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Extension"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string DotExtension
|
public string DotExtension
|
||||||
|
|||||||
@@ -2718,7 +2718,6 @@ namespace JDP
|
|||||||
settingsForm.Config = _profile._config;
|
settingsForm.Config = _profile._config;
|
||||||
settingsForm.ShowDialog(this);
|
settingsForm.ShowDialog(this);
|
||||||
}
|
}
|
||||||
SaveSettings();
|
|
||||||
SelectedOutputAudioType = SelectedOutputAudioType;
|
SelectedOutputAudioType = SelectedOutputAudioType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
CUETools/frmSettings.Designer.cs
generated
1
CUETools/frmSettings.Designer.cs
generated
@@ -1174,7 +1174,6 @@ namespace JDP
|
|||||||
this.comboBoxEncoderExtension.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxEncoderExtension.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxEncoderExtension.FormattingEnabled = true;
|
this.comboBoxEncoderExtension.FormattingEnabled = true;
|
||||||
this.comboBoxEncoderExtension.Name = "comboBoxEncoderExtension";
|
this.comboBoxEncoderExtension.Name = "comboBoxEncoderExtension";
|
||||||
this.comboBoxEncoderExtension.SelectedIndexChanged += new System.EventHandler(this.comboBoxEncoderExtension_SelectedIndexChanged);
|
|
||||||
//
|
//
|
||||||
// listBoxEncoders
|
// listBoxEncoders
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -459,13 +459,6 @@ namespace JDP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void comboBoxEncoderExtension_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Setting DataSourceUpdateMode to OnPropertyChanged doesn't seem
|
|
||||||
// to do the trick, so updating manually
|
|
||||||
comboBoxEncoderExtension.DataBindings["SelectedItem"].WriteValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void encodersBindingSource_CurrentItemChanged(object sender, EventArgs e)
|
private void encodersBindingSource_CurrentItemChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
CUEToolsUDC encoder = encodersBindingSource.Current as CUEToolsUDC;
|
CUEToolsUDC encoder = encodersBindingSource.Current as CUEToolsUDC;
|
||||||
|
|||||||
Reference in New Issue
Block a user