Skip to content

Commit 11236f9

Browse files
SwiftWindsairsquared
authored andcommitted
Fix minor typos in strings
1 parent b44d3ca commit 11236f9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/main/java/com/airsquared/blobsaver/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ public void goButtonHandler() {
939939
String identifierText = identifierField.getText();
940940
try {
941941
if (identifierText.startsWith("iPad") || identifierText.startsWith("iPod") || identifierText.startsWith("iPhone") || identifierText.startsWith("AppleTV")) {
942-
TSSChecker.run(identifierField.getText());
942+
TSSChecker.run(identifierText);
943943
} else {
944944
identifierField.setEffect(errorBorder);
945945
newUnreportableError("\"" + identifierText + "\" is not a valid identifier");

src/main/java/com/airsquared/blobsaver/Shared.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Shared {
7373
static String textToIdentifier(String deviceModel) {
7474
String toReturn = Devices.getDeviceModelIdentifiersMap().getOrDefault(deviceModel, "");
7575
if ("".equals(toReturn)) { // this will never happen in background
76-
Alert alert = new Alert(Alert.AlertType.ERROR, "Could not find: \"" + deviceModel + "\"" + "\n\nPlease create a new issue on Github or PM me on Reddit.", new ButtonType("Create Issue on Github"), new ButtonType("PM on Reddit"), ButtonType.CANCEL);
76+
Alert alert = new Alert(Alert.AlertType.ERROR, "Could not find identifier: \"" + deviceModel + "\"" + "\n\nPlease create a new issue on Github or PM me on Reddit.", new ButtonType("Create Issue on Github"), new ButtonType("PM on Reddit"), ButtonType.CANCEL);
7777
resizeAlertButtons(alert);
7878
alert.showAndWait();
7979
if (alert.getResult().equals(new ButtonType("Create Issue on Github"))) {

src/main/java/com/airsquared/blobsaver/TSSChecker.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ static void run(String device) {
6464
return; // the error alert should already be shown
6565
}
6666
String signedVersionsString = signedVersions.toString().substring(1, signedVersions.toString().length() - 1);
67-
Alert alert = new Alert(Alert.AlertType.INFORMATION, "Successfully saved blobs in\n" + controller.pathField.getText()
68-
+ "\n\nFor versions " + signedVersionsString, ButtonType.OK);
67+
Alert alert = new Alert(Alert.AlertType.INFORMATION,
68+
"Successfully saved blobs in\n" + controller.pathField.getText() + "\n\nFor "
69+
+ (signedVersions.size() == 1 ? "version " : "versions ") + signedVersionsString, ButtonType.OK);
6970
alert.setHeaderText("Success!");
7071
alert.showAndWait();
7172
} else {
@@ -162,7 +163,7 @@ private static void run(String device, String version) {
162163
// if multiple versions are being saved at the same time, do not show success message multiple times
163164
// the success message will be shown after saving everything is completed
164165
if (!controller.versionCheckBox.isSelected()) {
165-
Alert alert = new Alert(Alert.AlertType.INFORMATION, "Successfully saved blobs for version" + version + " in\n" + savePath, ButtonType.OK);
166+
Alert alert = new Alert(Alert.AlertType.INFORMATION, "Successfully saved blobs for version " + version + " in\n" + savePath, ButtonType.OK);
166167
alert.setHeaderText("Success!");
167168
alert.showAndWait();
168169
}

0 commit comments

Comments
 (0)