fix wrong gif at exit #100
This commit is contained in:
@@ -1966,9 +1966,27 @@ void Controller::shutdownhushd()
|
||||
QDialog d(main);
|
||||
Ui_ConnectionDialog connD;
|
||||
connD.setupUi(&d);
|
||||
connD.topIcon->setPixmap(QIcon(":/icons/res/icon.ico").pixmap(256, 256));
|
||||
auto theme = Settings::getInstance()->get_theme_name();
|
||||
auto size = QSize(512,512);
|
||||
|
||||
if (theme == "dark" || theme == "midnight") {
|
||||
QMovie *movie2 = new QMovie(":/img/res/silentdragonlite-animated-startup-dark.gif");;
|
||||
movie2->setScaledSize(size);
|
||||
qDebug() << "Animation dark loaded";
|
||||
connD.topIcon->setMovie(movie2);
|
||||
movie2->start();
|
||||
connD.status->setText(QObject::tr("Please wait for SilentDragonLite to exit"));
|
||||
connD.statusDetail->setText(QObject::tr("Waiting for hushd to exit"));
|
||||
} else {
|
||||
QMovie *movie1 = new QMovie(":/img/res/silentdragonlite-animated-startup.gif");;
|
||||
movie1->setScaledSize(size);
|
||||
qDebug() << "Animation light loaded";
|
||||
connD.topIcon->setMovie(movie1);
|
||||
movie1->start();
|
||||
connD.status->setText(QObject::tr("Please wait for SilentDragonLite to exit"));
|
||||
connD.statusDetail->setText(QObject::tr("Waiting for hushd to exit"));
|
||||
}
|
||||
|
||||
bool finished = false;
|
||||
zrpc->saveWallet([&] (json) {
|
||||
if (!finished)
|
||||
|
||||
Reference in New Issue
Block a user