Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Show a different title if there are errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
JBYoshi committed Nov 24, 2015
1 parent f85e395 commit 10844e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/jbyoshi/gitupdate/ui/TreeBasedUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public final class TreeBasedUI implements UI {
public void stateChanged(boolean error, boolean working, boolean future, boolean modified, boolean done) {
super.stateChanged(error, working, future, modified, done);
if (done) {
if (modified) {
if (error) {
frame.setTitle("GitUpdate - Errored");
} else if (modified) {
frame.setTitle("GitUpdate - Updated");
} else {
frame.setTitle("GitUpdate - Done");
Expand Down

0 comments on commit 10844e1

Please sign in to comment.