Skip to content

Commit

Permalink
Fixed capturing of data
Browse files Browse the repository at this point in the history
  • Loading branch information
opetany93 committed Jan 31, 2018
1 parent d4c9f59 commit fb80deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mainwindow/CaptureController.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void startOverwriteClick()
{
file = new File(filePathTextField.getText());

if(file.exists())
if(file.getPath().substring(file.getPath().length() - 3, file.getPath().length()).equals("txt"))
{
if(PortReader.getInstance().isOpen())
{
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow/captureView.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<Font size="11.0" />
</font>
</Label>
<TextField fx:id="filePathTextField" focusTraversable="false" minHeight="20.0" prefHeight="10.0" prefWidth="268.0" text="C:\captureOfData.txt">
<TextField fx:id="filePathTextField" editable="false" focusTraversable="false" minHeight="20.0" prefHeight="10.0" prefWidth="268.0" text="C:\captureOfData.txt">
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
Expand Down

0 comments on commit fb80deb

Please sign in to comment.