Skip to content

Commit

Permalink
move DEFAULT_APP_NAME to HavenoExecutable
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed May 15, 2024
1 parent 7e3d897 commit 1aa6286
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/haveno/core/app/HavenoExecutable.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
@Slf4j
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {

public static final String DEFAULT_APP_NAME = "Haveno";

public static final int EXIT_SUCCESS = 0;
public static final int EXIT_FAILURE = 1;
public static final int EXIT_RESTART = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class HavenoHeadlessAppMain extends HavenoExecutable {
protected HeadlessApp headlessApp;

public HavenoHeadlessAppMain() {
super("Haveno Daemon", "havenod", "Haveno", Version.VERSION);
super("Haveno Daemon", "havenod", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION);
}

public static void main(String[] args) throws Exception {
Expand Down
4 changes: 1 addition & 3 deletions desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@
@Slf4j
public class HavenoAppMain extends HavenoExecutable {

public static final String DEFAULT_APP_NAME = "Haveno";

private HavenoApp application;

public HavenoAppMain() {
super("Haveno Desktop", "haveno-desktop", DEFAULT_APP_NAME, Version.VERSION);
super("Haveno Desktop", "haveno-desktop", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION);
}

public static void main(String[] args) {
Expand Down

0 comments on commit 1aa6286

Please sign in to comment.