Skip to content

Commit

Permalink
added default constructors for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 26, 2024
1 parent f2e6352 commit d8d993b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Consolonia.Core/Controls/FileOpenPicker.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
Expand All @@ -9,6 +10,11 @@ namespace Consolonia.Core.Controls
{
public partial class FileOpenPicker : DialogWindow
{
public FileOpenPicker()
: this(new FilePickerOpenOptions())
{
}

public FileOpenPicker(FilePickerOpenOptions options)
{
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Expand Down
4 changes: 4 additions & 0 deletions src/Consolonia.Core/Controls/FileSavePicker.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace Consolonia.Core.Controls
{
public partial class FileSavePicker : DialogWindow
{
public FileSavePicker()
: this(new FilePickerSaveOptions())
{
}
public FileSavePicker(FilePickerSaveOptions options)
{
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Expand Down
5 changes: 5 additions & 0 deletions src/Consolonia.Core/Controls/FolderPicker.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ namespace Consolonia.Core.Controls
{
public partial class FolderPicker : DialogWindow
{
public FolderPicker()
: this(new FolderPickerOpenOptions())
{
}

public FolderPicker(FolderPickerOpenOptions options)
{
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Expand Down

0 comments on commit d8d993b

Please sign in to comment.