Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/MainWindow.axaml.cs')
-rw-r--r--UVtools.WPF/MainWindow.axaml.cs25
1 files changed, 15 insertions, 10 deletions
diff --git a/UVtools.WPF/MainWindow.axaml.cs b/UVtools.WPF/MainWindow.axaml.cs
index 182ee9c..444d8ba 100644
--- a/UVtools.WPF/MainWindow.axaml.cs
+++ b/UVtools.WPF/MainWindow.axaml.cs
@@ -1386,16 +1386,21 @@ namespace UVtools.WPF
public async void MenuHelpInstallProfilesClicked()
{
- var PEFolder = App.GetPrusaSlicerDirectory();
- if (string.IsNullOrEmpty(PEFolder) || !Directory.Exists(PEFolder))
- {
- if(await this.MessageBoxQuestion(
- "Unable to detect PrusaSlicer on your system, please ensure you have latest version installed.\n" +
- $"Was looking on: {PEFolder}\n\n" +
- "Click 'Yes' to open the PrusaSlicer webpage for download\n" +
- "Click 'No' to dismiss",
- "Unable to detect PrusaSlicer") == ButtonResult.Yes) SystemAware.OpenBrowser("https://www.prusa3d.com/prusaslicer/");
- return;
+ var PSFolder = App.GetPrusaSlicerDirectory();
+ if (string.IsNullOrEmpty(PSFolder) || !Directory.Exists(PSFolder))
+ {
+ var SSFolder = App.GetPrusaSlicerDirectory(true);
+ if (string.IsNullOrEmpty(SSFolder) || !Directory.Exists(SSFolder))
+ {
+ if (await this.MessageBoxQuestion(
+ "Unable to detect PrusaSlicer nor SuperSlicer on your system, please ensure you have latest version installed.\n" +
+ $"Was looking on: {PSFolder} and {SSFolder}\n\n" +
+ "Click 'Yes' to open the PrusaSlicer webpage for download\n" +
+ "Click 'No' to dismiss",
+ "Unable to detect PrusaSlicer") == ButtonResult.Yes)
+ SystemAware.OpenBrowser("https://www.prusa3d.com/prusaslicer/");
+ return;
+ }
}
await new PrusaSlicerManagerWindow().ShowDialog(this);
}