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
await DownloadPackage(package);
// extract the package immediately after download amogus balls
// extract the package immediately after download
ExtractPackage(package);
}
@ -708,7 +708,7 @@ namespace Bloxstrap
}
}
private async Task ExtractPackage(Package package)
private async void ExtractPackage(Package package)
{
if (CancelFired)
return;

View File

@ -125,11 +125,14 @@
</StackPanel>
</TabItem>
</TabControl>
<Border Background="{DynamicResource ControlSelectedBackground}" BorderBrush="{DynamicResource ControlSelectedBorderBrush}" BorderThickness="1" Margin="-1,0,-1,-1" Height="42" VerticalAlignment="Bottom">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<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>
<Border Background="{DynamicResource ControlSelectedBackground}" BorderBrush="{DynamicResource ControlSelectedBorderBrush}" BorderThickness="1" Margin="-1,0,-1,0" Height="42" VerticalAlignment="Bottom">
<Grid>
<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>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<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>
</Grid>
</Window>

View File

@ -155,6 +155,12 @@ namespace Bloxstrap.Dialogs
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

View File

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