Commit edbb2ac6 authored by Nate Graham's avatar Nate Graham 🔩

Replace generic "Fix it" text with more descriptive actions as

BUG: 417376
FIXED-IN: 5.19.0
parent 242a137e
......@@ -96,7 +96,7 @@ void SystemCheck::createWarnings(QVBoxLayout *layout)
m_notDiscoverableAdapterError->setMessageType(KMessageWidget::Warning);
m_notDiscoverableAdapterError->setCloseButtonVisible(false);
QAction *fixNotDiscoverableAdapter = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_notDiscoverableAdapterError);
QAction *fixNotDiscoverableAdapter = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Make Visible"), m_notDiscoverableAdapterError);
connect(fixNotDiscoverableAdapter, &QAction::triggered, this, &SystemCheck::fixNotDiscoverableAdapterError);
m_notDiscoverableAdapterError->addAction(fixNotDiscoverableAdapter);
m_notDiscoverableAdapterError->setText(i18n("Your default Bluetooth adapter is not visible for remote devices."));
......@@ -118,7 +118,7 @@ void SystemCheck::createWarnings(QVBoxLayout *layout)
m_noKdedRunningError ->setMessageType(KMessageWidget::Warning);
m_noKdedRunningError->setCloseButtonVisible(false);
QAction *fixNoKDEDRunning = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_noKdedRunningError);
QAction *fixNoKDEDRunning = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Enable"), m_noKdedRunningError);
connect(fixNoKDEDRunning, &QAction::triggered, this, &SystemCheck::fixNoKDEDRunning);
m_noKdedRunningError->addAction(fixNoKDEDRunning);
m_noKdedRunningError->setText(i18n("Bluetooth is not completely enabled."));
......
......@@ -266,17 +266,20 @@ void DiscoverPage::checkAdapters()
return;
}
QAction *fixAdapters = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_warningWidget);
connect(fixAdapters, &QAction::triggered, this, &DiscoverPage::fixAdaptersError);
m_warningWidget = new KMessageWidget(this);
m_warningWidget->setMessageType(KMessageWidget::Warning);
m_warningWidget->setCloseButtonVisible(false);
if (m_manager->isBluetoothBlocked()) {
m_warningWidget->setText(i18n("Bluetooth is disabled."));
fixAdapters->setText(i18nc("Action to enable Bluetooth adapter", "Enable"));
} else {
m_warningWidget->setText(i18n("Your Bluetooth adapter is not pairable."));
fixAdapters->setText(i18nc("Action to make Bluetooth adapter pairable", "Make Pairable"));
}
QAction *fixAdapters = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_warningWidget);
connect(fixAdapters, &QAction::triggered, this, &DiscoverPage::fixAdaptersError);
m_warningWidget->addAction(fixAdapters);
verticalLayout->insertWidget(0, m_warningWidget);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment