mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14: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,7 +11,7 @@ namespace SourceGit.Views
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void SelectParentFolder(object sender, RoutedEventArgs e)
|
||||
private async void SelectParentFolder(object _, RoutedEventArgs e)
|
||||
{
|
||||
var options = new FolderPickerOpenOptions() { AllowMultiple = false };
|
||||
var toplevel = TopLevel.GetTopLevel(this);
|
||||
|
@ -25,13 +25,18 @@ namespace SourceGit.Views
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private async void SelectSSHKey(object sender, RoutedEventArgs e)
|
||||
private async void SelectSSHKey(object _, RoutedEventArgs e)
|
||||
{
|
||||
var options = new FilePickerOpenOptions() { AllowMultiple = false, FileTypeFilter = [new FilePickerFileType("SSHKey") { Patterns = ["*.*"] }] };
|
||||
var toplevel = TopLevel.GetTopLevel(this);
|
||||
if (toplevel == null)
|
||||
return;
|
||||
|
||||
var options = new FilePickerOpenOptions()
|
||||
{
|
||||
AllowMultiple = false,
|
||||
FileTypeFilter = [new FilePickerFileType("SSHKey") { Patterns = ["*.*"] }]
|
||||
};
|
||||
|
||||
var selected = await toplevel.StorageProvider.OpenFilePickerAsync(options);
|
||||
if (selected.Count == 1)
|
||||
TxtSshKey.Text = selected[0].Path.LocalPath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue