move DEFAULT_APP_NAME to HavenoExecutable

This commit is contained in:
woodser 2024-05-15 09:32:55 -04:00
parent 7e3d89797e
commit 1aa62863f4
3 changed files with 4 additions and 4 deletions

View file

@ -82,6 +82,8 @@ import java.util.concurrent.atomic.AtomicInteger;
@Slf4j @Slf4j
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler { 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_SUCCESS = 0;
public static final int EXIT_FAILURE = 1; public static final int EXIT_FAILURE = 1;
public static final int EXIT_RESTART = 2; public static final int EXIT_RESTART = 2;

View file

@ -31,7 +31,7 @@ public class HavenoHeadlessAppMain extends HavenoExecutable {
protected HeadlessApp headlessApp; protected HeadlessApp headlessApp;
public HavenoHeadlessAppMain() { 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 { public static void main(String[] args) throws Exception {

View file

@ -47,12 +47,10 @@ import java.util.concurrent.ExecutionException;
@Slf4j @Slf4j
public class HavenoAppMain extends HavenoExecutable { public class HavenoAppMain extends HavenoExecutable {
public static final String DEFAULT_APP_NAME = "Haveno";
private HavenoApp application; private HavenoApp application;
public HavenoAppMain() { 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) { public static void main(String[] args) {