mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
[QT] Call inits parameter interaction before we create the options model
This commit is contained in:
parent
411b05ac95
commit
68354e75e9
@ -201,6 +201,8 @@ public:
|
|||||||
/// Create payment server
|
/// Create payment server
|
||||||
void createPaymentServer();
|
void createPaymentServer();
|
||||||
#endif
|
#endif
|
||||||
|
/// parameter interaction/setup based on rules
|
||||||
|
void parameterSetup();
|
||||||
/// Create options model
|
/// Create options model
|
||||||
void createOptionsModel(bool resetSettings);
|
void createOptionsModel(bool resetSettings);
|
||||||
/// Create main window
|
/// Create main window
|
||||||
@ -397,6 +399,11 @@ void BitcoinApplication::startThread()
|
|||||||
coreThread->start();
|
coreThread->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BitcoinApplication::parameterSetup()
|
||||||
|
{
|
||||||
|
InitParameterInteraction();
|
||||||
|
}
|
||||||
|
|
||||||
void BitcoinApplication::requestInitialize()
|
void BitcoinApplication::requestInitialize()
|
||||||
{
|
{
|
||||||
qDebug() << __func__ << ": Requesting initialize";
|
qDebug() << __func__ << ": Requesting initialize";
|
||||||
@ -644,6 +651,8 @@ int main(int argc, char *argv[])
|
|||||||
// Install qDebug() message handler to route to debug.log
|
// Install qDebug() message handler to route to debug.log
|
||||||
qInstallMessageHandler(DebugMessageHandler);
|
qInstallMessageHandler(DebugMessageHandler);
|
||||||
#endif
|
#endif
|
||||||
|
// Allow parameter interaction before we create the options model
|
||||||
|
app.parameterSetup();
|
||||||
// Load GUI settings from QSettings
|
// Load GUI settings from QSettings
|
||||||
app.createOptionsModel(mapArgs.count("-resetguisettings") != 0);
|
app.createOptionsModel(mapArgs.count("-resetguisettings") != 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user