Skip to content

Commit

Permalink
Preselect default option
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrariofilippo committed May 10, 2023
1 parent a11f661 commit 76e895f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Files.App/Helpers/DynamicDialogFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public static DynamicDialog GetFor_GitCheckoutConflicts()
},
SelectionMode = ListViewSelectionMode.Single
};
optionsListView.SelectedIndex = 0;

optionsListView.SelectionChanged += (listView, args) =>
{
Expand Down Expand Up @@ -258,7 +259,7 @@ public static DynamicDialog GetFor_GitCheckoutConflicts()
}
}
},
AdditionalData = GitCheckoutOptions.None,
AdditionalData = GitCheckoutOptions.BringChanges,
CloseButtonAction = (vm, e) =>
{
dialog.ViewModel.AdditionalData = GitCheckoutOptions.None;
Expand Down

0 comments on commit 76e895f

Please sign in to comment.