Bug fix in Printers.Enhanced.PrinterCfgCtrl.

This commit is contained in:
Milan Hanajik 2023-11-28 14:21:05 +01:00
parent 38983990c2
commit 2c6e5d3367

View File

@ -74,7 +74,6 @@ namespace TBF.Rig.Output.Printers.Enhanced
void Localize()
{
classNameLabel.Text = config.ClassName;
nameLabel.Text = Strings.Name;
printerLabel.Text = Strings.Printer;
selectPrinterButton.Text = "Select";
@ -92,6 +91,8 @@ namespace TBF.Rig.Output.Printers.Enhanced
void Redraw()
{
if (config == null) return; /// Control was not loaded, settings were not changed
classNameLabel.Text = config.ClassName;
nameTextBox.Text = config.Name;
printerComboBox.Text = string.IsNullOrEmpty(config.PrinterName) ? Strings.default_printer : config.PrinterName;
templateTextBox.Text = config.Template;