You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Label Grid.Row="0"Content="Unity Installation Parent Folders"Foreground="{DynamicResource ThemeButtonForeground}"HorizontalAlignment="Left"VerticalAlignment="Bottom"ToolTip="Search will try to find Unity installations under these folders"/>
1054
+
<Label Grid.Row="0"Content="Unity Installation(s) Parent Folder(s)"Foreground="{DynamicResource ThemeButtonForeground}"HorizontalAlignment="Left"VerticalAlignment="Bottom"ToolTip="Search will try to find Unity installations under these folders"/>
<Buttonx:Name="btnPatchHubConfig"ToolTip="Modifies json file to set 'manual:true' values into 'false', so that can add modules using Hub. NOTE: This cannot be reversed (not keeping track which values was already 'false')"Style="{StaticResource CustomButton}"BorderBrush="{x:Null}"HorizontalAlignment="Left"VerticalAlignment="Top"Click="btnPatchHubConfig_Click">
varresult=MessageBox.Show("This will modify current "+configFile+" file. Are you sure you want to continue? (This cannot be undone, we dont know which 'manual:'-value was already set to 'false' (but it shouldnt break anything)","Warning",MessageBoxButton.YesNo,MessageBoxImage.Warning);
2831
+
if(result==MessageBoxResult.Yes)
2832
+
{
2833
+
if(File.Exists(configFile)==true)
2834
+
{
2835
+
// read the config file
2836
+
varjson=File.ReadAllText(configFile);
2837
+
// replace the manual:true with manual:false using regex
0 commit comments