From 42e8e55223517cf47e1f784cbccf7bdece178999 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Fri, 10 Apr 2026 14:25:49 +0000 Subject: [PATCH] update connection message for different platforms in HowToConnectDialog --- src/howtoconnectdialog.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/howtoconnectdialog.cpp b/src/howtoconnectdialog.cpp index ccbe957..858dc26 100644 --- a/src/howtoconnectdialog.cpp +++ b/src/howtoconnectdialog.cpp @@ -23,9 +23,23 @@ HowToConnectDialog::HowToConnectDialog(QWidget *parent) : QDialog{parent} QSize(200, 200))); // first page m_stackedWidget->addWidget(createPage("Accept the pairing dialog", ":/resources/trust.png")); // second + + QString message; + +#ifdef WIN32 + message = + "You can now unplug the device. iDescriptor will connect to it " + "automatically (requires iOS 15 or later and the Bonjour service)."; +#elif __linux__ + message = "You can now unplug the device. iDescriptor will connect to it " + "automatically (requires iOS 15 or later and the Avahi daemon)."; +#else + message = "You can now unplug the device. iDescriptor will connect to it " + "automatically (requires iOS 15 or later)."; +#endif + m_stackedWidget->addWidget( - createPage("You can now unplug it iDescriptor will connect to it " - "automatically (iOS 15 or later is required)", + createPage(message, ":/resources/ios-version.png")); // third contentLayout->addWidget(m_stackedWidget, 1);