Miscellaneous improvements

This commit is contained in:
pizzaboxer 2023-01-09 21:55:22 +00:00
parent bb65472886
commit a69522b00d
4 changed files with 17 additions and 8 deletions

View File

@ -482,7 +482,7 @@ namespace Bloxstrap
// download all the packages synchronously // download all the packages synchronously
await DownloadPackage(package); await DownloadPackage(package);
// extract the package immediately after download amogus balls // extract the package immediately after download
ExtractPackage(package); ExtractPackage(package);
} }
@ -708,7 +708,7 @@ namespace Bloxstrap
} }
} }
private async Task ExtractPackage(Package package) private async void ExtractPackage(Package package)
{ {
if (CancelFired) if (CancelFired)
return; return;

View File

@ -125,11 +125,14 @@
</StackPanel> </StackPanel>
</TabItem> </TabItem>
</TabControl> </TabControl>
<Border Background="{DynamicResource ControlSelectedBackground}" BorderBrush="{DynamicResource ControlSelectedBorderBrush}" BorderThickness="1" Margin="-1,0,-1,-1" Height="42" VerticalAlignment="Bottom"> <Border Background="{DynamicResource ControlSelectedBackground}" BorderBrush="{DynamicResource ControlSelectedBorderBrush}" BorderThickness="1" Margin="-1,0,-1,0" Height="42" VerticalAlignment="Bottom">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <Grid>
<Button x:Name="ButtonConfirm" Content="{Binding ConfirmButtonText, Mode=OneTime}" Width="66" Height="23" HorizontalAlignment="Right" Margin="0,0,10,0" Click="ButtonConfirm_Click" /> <TextBlock Text="Like Bloxstrap? " VerticalAlignment="Center" Margin="10,0,0,0" ><Hyperlink NavigateUri="https://github.com/pizzaboxer/bloxstrap" RequestNavigate="Hyperlink_RequestNavigate">Leave a star on GitHub!</Hyperlink></TextBlock>
<Button x:Name="ButtonCancel" Content="Cancel" Width="66" Height="23" HorizontalAlignment="Right" Margin="0,0,10,0" Click="ButtonCancel_Click" /> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
</StackPanel> <Button x:Name="ButtonConfirm" Content="{Binding ConfirmButtonText, Mode=OneTime}" Width="66" Height="23" HorizontalAlignment="Right" Margin="0,0,10,0" Click="ButtonConfirm_Click" />
<Button x:Name="ButtonCancel" Content="Cancel" Width="66" Height="23" HorizontalAlignment="Right" Margin="0,0,10,0" Click="ButtonCancel_Click" />
</StackPanel>
</Grid>
</Border> </Border>
</Grid> </Grid>
</Window> </Window>

View File

@ -155,6 +155,12 @@ namespace Bloxstrap.Dialogs
this.Close(); this.Close();
} }
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Utilities.OpenWebsite(e.Uri.AbsoluteUri);
e.Handled = true;
}
} }
public class PreferencesViewModel : INotifyPropertyChanged public class PreferencesViewModel : INotifyPropertyChanged

View File

@ -132,7 +132,7 @@ namespace Bloxstrap
string commandLine = ""; string commandLine = "";
#if DEBUG #if false//DEBUG
new Preferences().ShowDialog(); new Preferences().ShowDialog();
#else #else
if (args.Length > 0) if (args.Length > 0)