mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
style: add .editorconfig for code formatting. see issu #25
This commit is contained in:
parent
a8eeea4f78
commit
18aaa0a143
225 changed files with 7781 additions and 3911 deletions
|
@ -2,21 +2,26 @@ using Avalonia.Controls;
|
|||
using Avalonia.Interactivity;
|
||||
using Avalonia.Platform.Storage;
|
||||
|
||||
namespace SourceGit.Views {
|
||||
public partial class Archive : UserControl {
|
||||
public Archive() {
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
public partial class Archive : UserControl
|
||||
{
|
||||
public Archive()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void SelectOutputFile(object sender, RoutedEventArgs e) {
|
||||
var options = new FilePickerSaveOptions() { DefaultExtension = ".zip", FileTypeChoices = [ new FilePickerFileType("ZIP") { Patterns = [ "*.zip" ]}] };
|
||||
private async void SelectOutputFile(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var options = new FilePickerSaveOptions() { DefaultExtension = ".zip", FileTypeChoices = [new FilePickerFileType("ZIP") { Patterns = ["*.zip"] }] };
|
||||
var toplevel = TopLevel.GetTopLevel(this);
|
||||
var selected = await toplevel.StorageProvider.SaveFilePickerAsync(options);
|
||||
if (selected != null) {
|
||||
if (selected != null)
|
||||
{
|
||||
txtSaveFile.Text = selected.Path.LocalPath;
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue