Added a splash screen to show that the wallet is loading up
Can take a little while for the node and wallet to start, added a splash screen with a logo to show that things are actually happening. Might need to actually change the logo as its a bit big and there is some transparency. This in response to #48
This commit is contained in:
parent
1b8849a803
commit
32390dfafa
2 changed files with 4 additions and 0 deletions
BIN
logo.png
Normal file
BIN
logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
|
|
@ -192,6 +192,9 @@ bool update_config (qt_wallet_config & config_a, boost::filesystem::path const &
|
||||||
int run_wallet (QApplication & application, int argc, char * const * argv)
|
int run_wallet (QApplication & application, int argc, char * const * argv)
|
||||||
{
|
{
|
||||||
rai_qt::eventloop_processor processor;
|
rai_qt::eventloop_processor processor;
|
||||||
|
QPixmap pixmap("logo.png");
|
||||||
|
QSplashScreen splash(pixmap);
|
||||||
|
splash.show();
|
||||||
auto working (rai::working_path ());
|
auto working (rai::working_path ());
|
||||||
boost::filesystem::create_directories (working);
|
boost::filesystem::create_directories (working);
|
||||||
qt_wallet_config config (working);
|
qt_wallet_config config (working);
|
||||||
|
|
@ -247,6 +250,7 @@ int run_wallet (QApplication & application, int argc, char * const * argv)
|
||||||
rpc.start ();
|
rpc.start ();
|
||||||
}
|
}
|
||||||
auto gui (std::make_shared <rai_qt::wallet> (application, processor, *node, wallet, config.account));
|
auto gui (std::make_shared <rai_qt::wallet> (application, processor, *node, wallet, config.account));
|
||||||
|
splash.close();
|
||||||
gui->start ();
|
gui->start ();
|
||||||
gui->client_window->show ();
|
gui->client_window->show ();
|
||||||
rai::thread_runner runner (service, node->config.io_threads);
|
rai::thread_runner runner (service, node->config.io_threads);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue