Skip to content

Commit

Permalink
Actually delete items from the stash. (#47)
Browse files Browse the repository at this point in the history
* Actually delete items from the stash.

* Fix binding error.
  • Loading branch information
mburbea authored Aug 4, 2020
1 parent c8afc06 commit e922fe3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<Setter Property="TextAlignment" Value="Left" />
</DataTrigger>
</Style.Triggers>
<Setter Property="Text" Value="{Binding Stash.Items.Count, Mode=OneWay}" />
<Setter Property="Text" Value="{Binding Items.Count, Mode=OneWay}" />
<Setter Property="TextAlignment" Value="Right" />
</Style>
</TextBox.Style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private void AddItem()
private void DeleteItem(StashItemModel item)
{
this.RemoveItem(item);
this.Stash.DeleteItem(item.Item);
this.MainWindowViewModel.RegisterUnsavedChange();
}
}
Expand Down
1 change: 1 addition & 0 deletions KoAR.SaveEditor/Views/Updates/UpdateViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void Dispose()
this.UpdateService.DownloadProgress -= this.UpdateService_DownloadProgress;
if (this.DialogResult == true)
{
return;
}
if (this._downloadTask == null)
{
Expand Down

0 comments on commit e922fe3

Please sign in to comment.