Add right click to toolbar

This commit is contained in:
LarsBrubaker 2021-12-12 11:19:45 -08:00
parent 98cac92bc3
commit 9d201a3578
4 changed files with 569 additions and 613 deletions

View file

@ -2014,13 +2014,20 @@ namespace MatterHackers.MatterControl
translationFilePath = Path.Combine("Translations", "Master.txt");
}
using (var stream = StaticData.Instance.OpenStream(translationFilePath))
if (File.Exists(translationFilePath))
{
using (var streamReader = new StreamReader(stream))
using (var stream = StaticData.Instance.OpenStream(translationFilePath))
{
TranslationMap.ActiveTranslationMap = new TranslationMap(streamReader, UserSettings.Instance.Language);
using (var streamReader = new StreamReader(stream))
{
TranslationMap.ActiveTranslationMap = new TranslationMap(streamReader);
}
}
}
else
{
TranslationMap.ActiveTranslationMap = new TranslationMap();
}
}
public void MonitorPrintTask(PrinterConfig printer)