aboutsummaryrefslogtreecommitdiff
path: root/src/noui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/noui.h')
-rw-r--r--src/noui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/noui.h b/src/noui.h
index 4010ec3c7c..0cb42ca0a4 100644
--- a/src/noui.h
+++ b/src/noui.h
@@ -7,6 +7,7 @@
#include <string>
#include "wallet.h"
+#include "init.h"
typedef void wxWindow;
#define wxYES 0x00000002
@@ -71,4 +72,10 @@ inline const char* _(const char* psz)
return psz;
}
+inline void QueueShutdown()
+{
+ // Without UI, Shutdown can simply be started in a new thread
+ CreateThread(Shutdown, NULL);
+}
+
#endif