Commit account edits before saving (#639)
This commit is contained in:
parent
94d3742317
commit
ca0e639a19
@ -23,6 +23,7 @@
|
|||||||
CanUserSortColumns="False"
|
CanUserSortColumns="False"
|
||||||
AutoGenerateColumns="False"
|
AutoGenerateColumns="False"
|
||||||
IsReadOnly="False"
|
IsReadOnly="False"
|
||||||
|
Name="accountsGrid"
|
||||||
ItemsSource="{Binding Accounts}"
|
ItemsSource="{Binding Accounts}"
|
||||||
GridLinesVisibility="All">
|
GridLinesVisibility="All">
|
||||||
|
|
||||||
|
|||||||
@ -157,6 +157,8 @@ namespace LibationAvalonia.Dialogs
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
accountsGrid.CommitEdit();
|
||||||
|
|
||||||
if (!await inputIsValid())
|
if (!await inputIsValid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@ -41,6 +41,7 @@ namespace LibationAvalonia.Dialogs
|
|||||||
_accounts.Add(new listItem
|
_accounts.Add(new listItem
|
||||||
{
|
{
|
||||||
Account = account,
|
Account = account,
|
||||||
|
IsChecked = account.LibraryScan,
|
||||||
Text = $"{account.AccountName} ({account.AccountId} - {account.Locale.Name})"
|
Text = $"{account.AccountName} ({account.AccountId} - {account.Locale.Name})"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user