From 36f50965f42f03a1e8cf2467c3c212e3b8c28a1e Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 5 Feb 2023 22:31:35 -0500 Subject: [PATCH] Use correct window title when shutting down SDX --- src/rpc.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index 76a6857..d1b2657 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -1671,6 +1671,9 @@ void RPC::shutdownHushd() { Ui_ConnectionDialog connD; connD.setupUi(&d); //connD.topIcon->setBasePixmap(QIcon(":/icons/icon.ico").pixmap(256, 256)); + if(isdragonx) { + d.setWindowTitle("SilentDragonX"); + } QMovie *movie1 = new QMovie(":/img/silentdragon-animated-dark.gif");; auto theme = Settings::getInstance()->get_theme_name(); @@ -1678,8 +1681,13 @@ void RPC::shutdownHushd() { connD.topIcon->setMovie(movie1); movie1->start(); - connD.status->setText(QObject::tr("Please enhance your calm and wait for SilentDragon to exit")); - connD.statusDetail->setText(QObject::tr("Waiting for hushd to exit, y'all")); + if(isdragonx) { + connD.status->setText(QObject::tr("Please enhance your calm and wait for SilentDragonX to exit")); + connD.statusDetail->setText(QObject::tr("Waiting for dragonxd to exit, y'all")); + } else { + connD.status->setText(QObject::tr("Please enhance your calm and wait for SilentDragon to exit")); + connD.statusDetail->setText(QObject::tr("Waiting for hushd to exit, y'all")); + } QTimer waiter(main);