From 0fc78649f9e1c5acace96681b9fe0f3b6bf91039 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 5 May 2025 16:34:56 -0400 Subject: [PATCH] Improve UI labels in the compatibility tool installer This finally adds a note to explain *why* you would want to do this. I'm not 100% happy with it, but it's so much better than before! --- launcher/src/compatibilitytoolinstaller.cpp | 4 ++-- launcher/ui/Settings/CompatibilityToolSetup.qml | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/launcher/src/compatibilitytoolinstaller.cpp b/launcher/src/compatibilitytoolinstaller.cpp index cb88bb3..9209fca 100644 --- a/launcher/src/compatibilitytoolinstaller.cpp +++ b/launcher/src/compatibilitytoolinstaller.cpp @@ -25,7 +25,7 @@ void CompatibilityToolInstaller::installCompatibilityTool() const QDir compatToolDir = steamSteamDir.absoluteFilePath(QStringLiteral("compatibilitytools.d")); const QDir astraToolDir = compatToolDir.absoluteFilePath(QStringLiteral("astra")); if (astraToolDir.exists()) { - Q_EMIT error(i18n("The compatibility tool is already installed.")); + Q_EMIT error(i18n("Astra's Compatibility Tool is already installed.")); return; } @@ -106,7 +106,7 @@ void CompatibilityToolInstaller::removeCompatibilityTool() const QDir compatToolDir = steamSteamDir.absoluteFilePath(QStringLiteral("compatibilitytools.d")); QDir astraToolDir = compatToolDir.absoluteFilePath(QStringLiteral("astra")); if (!astraToolDir.exists()) { - Q_EMIT error(i18n("The compatibility tool is not installed.")); + Q_EMIT error(i18n("Astra's Compatibility Tool is not installed.")); return; } else { astraToolDir.removeRecursively(); diff --git a/launcher/ui/Settings/CompatibilityToolSetup.qml b/launcher/ui/Settings/CompatibilityToolSetup.qml index 3ac119e..c90acf8 100644 --- a/launcher/ui/Settings/CompatibilityToolSetup.qml +++ b/launcher/ui/Settings/CompatibilityToolSetup.qml @@ -22,7 +22,8 @@ FormCard.FormCardPage { Layout.topMargin: Kirigami.Units.largeSpacing * 4 FormCard.FormTextDelegate { - text: i18n("Press the button below to install the compatibility tool for Steam.") + text: i18n("Installing Astra as a Compatibility Tool in Steam lets you bypass the official launcher.\n\nThis is needed to use Astra with a Steam service account.") + textItem.wrapMode: Text.WordWrap } } @@ -32,7 +33,7 @@ FormCard.FormCardPage { FormCard.FormButtonDelegate { id: installToolButton - text: i18n("Install Tool") + text: i18n("Install Compatibility Tool") icon.name: "install" visible: page.installer.hasSteam && !page.installer.isInstalled onClicked: page.installer.installCompatibilityTool() @@ -41,7 +42,7 @@ FormCard.FormCardPage { FormCard.FormButtonDelegate { id: removeToolButton - text: i18n("Remove Tool") + text: i18n("Remove Compatibility Tool") icon.name: "delete" visible: page.installer.hasSteam && page.installer.isInstalled onClicked: page.installer.removeCompatibilityTool() @@ -64,20 +65,20 @@ FormCard.FormCardPage { target: page.installer function onInstallFinished(): void { - page.errorDialog.title = i18n("Install Success"); - page.errorDialog.subtitle = i18n("Compatibility tool successfully installed!"); + page.errorDialog.title = i18n("Successful Installation"); + page.errorDialog.subtitle = i18n("You need to relaunch Steam for Astra to show up as a Compatibility Tool."); page.errorDialog.open(); } function onError(message: string): void { - page.errorDialog.title = i18n("Install Error"); + page.errorDialog.title = i18n("Installation Error"); page.errorDialog.subtitle = message; page.errorDialog.open(); } function onRemovalFinished(): void { - page.errorDialog.title = i18n("Removal Success"); - page.errorDialog.subtitle = i18n("Compatibility tool successfully removed!"); + page.errorDialog.title = i18n("Successful Removal"); + page.errorDialog.subtitle = i18n("You need to relaunch Steam for Astra to stop showing up as a Compatibility Tool."); page.errorDialog.open(); } }