summaryrefslogtreecommitdiff
path: root/src/lockwidget.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 02:18:21 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:58 -0500
commitb855754c9708c825e6bc1e995cb0262c065c5d20 (patch)
tree0337f92c4625d78094149aa10b17673682058028 /src/lockwidget.cpp
parent2c3079c1dc2aaeb84cbe7e4a021f6b3f22c785a3 (diff)
removed runShortcut()
changed lock widget text when running without a ui
Diffstat (limited to 'src/lockwidget.cpp')
-rw-r--r--src/lockwidget.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lockwidget.cpp b/src/lockwidget.cpp
index ad9aefe3..cc66112e 100644
--- a/src/lockwidget.cpp
+++ b/src/lockwidget.cpp
@@ -107,8 +107,16 @@ void LockWidget::createUi(Reasons reason)
{
case LockUI:
{
- message->setText(QObject::tr(
- "Mod Organizer is locked while the executable is running."));
+ QString s;
+
+ if (!m_parent) {
+ s = QObject::tr("Mod Organizer is currently running an application.");
+ } else {
+ s = QObject::tr(
+ "Mod Organizer is locked while the application is running.");
+ }
+
+ message->setText(s);
auto* unlockButton = new QPushButton(QObject::tr("Unlock"));
QObject::connect(unlockButton, &QPushButton::clicked, [&]{ onForceUnlock(); });
@@ -120,7 +128,7 @@ void LockWidget::createUi(Reasons reason)
case OutputRequired:
{
message->setText(QObject::tr(
- "The executable must run to completion because its output is "
+ "The application must run to completion because its output is "
"required."));
auto* unlockButton = new QPushButton(QObject::tr("Unlock"));
@@ -133,7 +141,7 @@ void LockWidget::createUi(Reasons reason)
case PreventExit:
{
message->setText(QObject::tr(
- "Mod Organizer is waiting on processes to finish before exiting."));
+ "Mod Organizer is waiting on application to close before exiting."));
auto* exit = new QPushButton(QObject::tr("Exit Now"));
QObject::connect(exit, &QPushButton::clicked, [&]{ onForceUnlock(); });