mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-17 01:45:09 +12:00
Add 'if' and 'else' to OpenAppDataButton
This would solve one of the issues I DM'd you about if the folder doesn't exist.
This commit is contained in:
parent
9b878a43c3
commit
8c53243031
|
@ -194,7 +194,14 @@ namespace ModAssistant.Pages
|
|||
string location = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
"AppData", "LocalLow", "Hyperbolic Magnetism");
|
||||
Utils.OpenFolder(location);
|
||||
if (Directory.Exists(location)
|
||||
{
|
||||
Utils.OpenFolder(location);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show((string)Application.Current.FindResource("Options:AppDataNotFound"));
|
||||
}
|
||||
}
|
||||
|
||||
private async void YeetBSIPAButton_Click(object sender, RoutedEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue