mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
code_style: remove all IDE warnings
This commit is contained in:
parent
9ac550242e
commit
a807aa9e12
94 changed files with 785 additions and 807 deletions
|
@ -11,15 +11,21 @@ namespace SourceGit.Views
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void SelectOutputFile(object sender, RoutedEventArgs e)
|
||||
private async void SelectOutputFile(object _, RoutedEventArgs e)
|
||||
{
|
||||
var options = new FilePickerSaveOptions() { DefaultExtension = ".zip", FileTypeChoices = [new FilePickerFileType("ZIP") { Patterns = ["*.zip"] }] };
|
||||
var toplevel = TopLevel.GetTopLevel(this);
|
||||
if (toplevel == null)
|
||||
return;
|
||||
|
||||
var options = new FilePickerSaveOptions()
|
||||
{
|
||||
DefaultExtension = ".zip",
|
||||
FileTypeChoices = [new FilePickerFileType("ZIP") { Patterns = ["*.zip"] }]
|
||||
};
|
||||
|
||||
var selected = await toplevel.StorageProvider.SaveFilePickerAsync(options);
|
||||
if (selected != null)
|
||||
{
|
||||
txtSaveFile.Text = selected.Path.LocalPath;
|
||||
}
|
||||
TxtSaveFile.Text = selected.Path.LocalPath;
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue