mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 11:39:29 +00:00
move DEFAULT_APP_NAME to HavenoExecutable
This commit is contained in:
parent
7e3d89797e
commit
1aa62863f4
3 changed files with 4 additions and 4 deletions
|
@ -82,6 +82,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
@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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -47,12 +47,10 @@ import java.util.concurrent.ExecutionException;
|
|||
@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) {
|
||||
|
|
Loading…
Reference in a new issue