Do not include part list option on unsupported platforms.
This commit is contained in:
parent
88f0423587
commit
a01ac75979
2 changed files with 9 additions and 5 deletions
|
|
@ -105,16 +105,16 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
|
||||
// The pdf export library is not working on the mac at the moment so we don't include the
|
||||
// part sheet export option on mac.
|
||||
if (OsInformation.OperatingSystem == OSType.Mac)
|
||||
if (OsInformation.OperatingSystem == OSType.Windows)
|
||||
{
|
||||
// mac cannot export to pdf
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get("Other"), null));
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get(" Create Part Sheet"), createPartsSheetsButton_Click));
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get(" Remove All"), removeAllFromQueueButton_Click));
|
||||
}
|
||||
else
|
||||
{
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get("Other"), null));
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get(" Create Part Sheet"), createPartsSheetsButton_Click));
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get("Other"), null));
|
||||
menuItems.Add(new Tuple<string,Func<bool>>(LocalizedString.Get(" Remove All"), removeAllFromQueueButton_Click));
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +145,8 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
|
||||
void PartSheetClickOnIdle(object state)
|
||||
{
|
||||
List<PrintItem> parts = QueueData.Instance.CreateReadOnlyPartList();
|
||||
#if !__ANDROID__
|
||||
List<PrintItem> parts = QueueData.Instance.CreateReadOnlyPartList();
|
||||
if (parts.Count > 0)
|
||||
{
|
||||
string documentsPath = System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal);
|
||||
|
|
@ -175,6 +176,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
feedbackWindow.ShowAsSystemWindow();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
string pleaseSelectPrinterMessage = "Before you can export printable files, you must select a printer.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue