Skip to content

Commit

Permalink
Fixed SaveFileDialog
Browse files Browse the repository at this point in the history
vatioz committed Jun 29, 2018
1 parent 14c6fff commit dc98a37
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions Services/FileDialogService.cs
Original file line number Diff line number Diff line change
@@ -52,6 +52,7 @@ private void SaveDialog(SaveFileMessage msg)
public void StartListening()
{
TinyMessengerHub.Instance.Subscribe<OpenFileMessage>(OpenDialog);
TinyMessengerHub.Instance.Subscribe<SaveFileMessage>(SaveDialog);
}
}

2 changes: 0 additions & 2 deletions ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
@@ -120,9 +120,7 @@ private void ExportExecute()
try
{
var sb = BuildExportString();

TinyMessengerHub.Instance.Publish(new SaveFileMessage(this, stream => { SaveFile(stream, sb); }));

}
catch (Exception ex)
{

0 comments on commit dc98a37

Please sign in to comment.