Skip to content

Commit 1b0bf7a

Browse files
author
Connor Moreside
committed
Fixed bug in manage copybook view.
1 parent d74dc07 commit 1b0bf7a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

CodeMovement.EbcdicCompare.Presentation/ViewModel/ManageCopybooksViewModel.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ public string SelectedNewEbcdicFile
9191
get { return _selectedNewEbcdicFile; }
9292
set
9393
{
94-
_selectedNewEbcdicFile = value;
94+
_selectedNewEbcdicFile = value != null
95+
? System.IO.Path.GetFileName(value)
96+
: null;
97+
9598
OnPropertyChanged("SelectedNewEbcdicFile");
9699
}
97100
}
@@ -265,11 +268,7 @@ private void OnSelectNewCopybook()
265268

266269
private void OnSelectNewEbcdicFile()
267270
{
268-
var ebcdicFilePath = _fileDialogInteraction.OpenFileDialog("Select New EBCDIC file");
269-
270-
SelectedNewEbcdicFile = ebcdicFilePath != null
271-
? System.IO.Path.GetFileName(ebcdicFilePath)
272-
: null;
271+
SelectedNewEbcdicFile = _fileDialogInteraction.OpenFileDialog("Select New EBCDIC file");
273272
}
274273

275274
#endregion

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ebcdic-compare-tool [![Build status](https://ci.appveyor.com/api/projects/status/snsicw8e2v06x3uh/branch/master?svg=true)](https://ci.appveyor.com/project/cmoresid/ebcdic-compare-tool/branch/master) [![Quality Gate](https://sonarqube.com/api/badges/gate?key=ebcdic-compare-tool)](https://sonarqube.com/dashboard/index/ebcdic-compare-tool)
22

33
## Installation
4-
1. Download the [current release](https://github.com/cmoresid/ebcdic-compare-tool/releases/download/v1.0.0/ebcdic-compare-v1.0.0.zip).
5-
2. Unzip ebcdic-compare-v1.0.0.zip to a location of your choice.
4+
1. Download the [current release](https://github.com/cmoresid/ebcdic-compare-tool/releases/download/v1.0.1/ebcdic-compare-v1.0.1.zip).
5+
2. Unzip ebcdic-compare-v1.0.1.zip to a location of your choice.
66
3. To open the application, double click the ```EbcdicCompare.exe``` icon.
77

88
## Instructions

0 commit comments

Comments
 (0)