mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-20 20:32:32 +12:00
Merge pull request #131 from Parapass/patch-3
Add 'if' and 'else' to Open AppData Button
This commit is contained in:
commit
35830234d8
|
@ -163,6 +163,7 @@
|
|||
<sys:String x:Key="Options:AllModsUninstalled">All Mods Uninstalled</sys:String>
|
||||
<sys:String x:Key="Options:CurrentThemeRemoved">Current theme has been removed, reverting to default...</sys:String>
|
||||
<sys:String x:Key="Options:ThemeFolderNotFound">Themes folder not found! Try exporting the template...</sys:String>
|
||||
<sys:String x:Key="Options:AppDataNotFound">AppData folder not found! Try launching your game.</sys:String>
|
||||
|
||||
<!-- Loading Page -->
|
||||
<sys:String x:Key="Loading:Loading">Loading Mods</sys:String>
|
||||
|
|
|
@ -218,7 +218,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