Skip to content

Commit

Permalink
clear preview image for new files
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Feb 15, 2018
1 parent 15093dd commit 396367a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/com.github.artemanufrij.graphui.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<ul>
<li>Moved to SourceView for undo support</li>
<li>Reload image after saving file</li>
<li>Clear resutl image for 'New File'</li>
</ul>
<p>Fixed:</p>
<ul>
Expand Down
Binary file modified screenshots/Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ namespace GraphUI {

public void new_file_action () {
current_file = null;
text.buffer.text = "";
image.set_from_file (null);
headerbar.title = _ ("GraphUI");
text.buffer.text = "";
text.grab_focus ();
}

public void save_file_action (bool closing=false) {
Expand Down

0 comments on commit 396367a

Please sign in to comment.