Skip to content

Commit c42c904

Browse files
committed
Add automatically saving blobs to the cloud to the wiki/help menus
1 parent 38ac76d commit c42c904

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# blobsaver
22
A GUI for saving SHSH blobs using encounter's fork of tsschecker(uses tihmstar's original for linux). Supports both Mac, Windows, and Linux. Requires [Java](https://java.com/inc/BrowserRedirect1.jsp).
33

4+
**Tip:** if you want blobs you save to automatically be uploaded to the cloud, see [this](https://github.com/airsquared/blobsaver/wiki/Automatically-saving-blobs-to-the-cloud\(Dropbox,-Google-Drive,-iCloud\))
5+
46
[Download here](https://github.com/airsquared/blobsaver/releases/latest)
57

68
If you have an antivirus or firewall, you may need to disable some other settings or disable the firewall completely for automatically saving blobs in the background to work. If you use Norton, go to Settings -> Firewall -> Advanced Program Control and set the option "Low Risk Applications" to "Allow".
@@ -23,7 +25,6 @@ If you have an antivirus or firewall, you may need to disable some other setting
2325
Please send feedback via [Github Issue](https://github.com/airsquared/blobsaver/issues/new/choose) or [Reddit PM](https://www.reddit.com//message/compose?to=01110101_00101111&subject=Blobsaver+Feedback) if you encounter any bugs/problems or have a feature request.
2426

2527
## TODO:
26-
- Auto-upload to Dropbox/Google Drive
2728
- Package into .app/.exe [maybe this](https://github.com/Jorl17/jar2app)
2829
- Better notifications
2930

src/main/java/blobsaver/Controller.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,20 @@ public void helpLabelHandler(MouseEvent evt) {
770770
}
771771
}
772772
break;
773+
case "location":
774+
openLink = new ButtonType("Open link");
775+
alert = new Alert(Alert.AlertType.INFORMATION, "Click \"Open link\" to see how to automatically upload blobs you save to the cloud.", openLink, ButtonType.OK);
776+
alert.setTitle("Help: Saving Blobs to the Cloud");
777+
alert.setHeaderText("Help");
778+
alert.showAndWait();
779+
if (openLink.equals(alert.getResult())) {
780+
try {
781+
Desktop.getDesktop().browse(new URI("https://github.com/airsquared/blobsaver/wiki/Automatically-saving-blobs-to-the-cloud(Dropbox,-Google-Drive,-iCloud)"));
782+
} catch (IOException | URISyntaxException e) {
783+
e.printStackTrace();
784+
}
785+
}
786+
break;
773787
}
774788
}
775789

@@ -1103,6 +1117,9 @@ public void showWiki(ActionEvent event) {
11031117
case "Running on system startup":
11041118
url = "https://github.com/airsquared/blobsaver/wiki/Running-on-system-startup";
11051119
break;
1120+
case "Automatically upload blobs to the cloud":
1121+
url = "https://github.com/airsquared/blobsaver/wiki/Automatically-saving-blobs-to-the-cloud(Dropbox,-Google-Drive,-iCloud)";
1122+
break;
11061123
default:
11071124
url = "https://github.com/airsquared/blobsaver/wiki";
11081125
break;

src/main/resources/blobsaver/blobsaver.fxml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
text="Getting the required information"/>
4343
<MenuItem mnemonicParsing="false" onAction="#showWiki"
4444
text="Setting it up to run in the background"/>
45+
<MenuItem mnemonicParsing="false" onAction="#showWiki"
46+
text="Automatically upload blobs to the cloud"/>
4547
<MenuItem mnemonicParsing="false" onAction="#showWiki"
4648
text="Running on system startup"/>
4749
</Menu>
@@ -213,15 +215,26 @@
213215
<Insets bottom="5.0" left="10.0" top="5.0"/>
214216
</VBox.margin>
215217
</Label>
216-
<AnchorPane>
218+
<HBox>
217219
<VBox.margin>
218220
<Insets bottom="5.0" left="10.0" right="10.0"/>
219221
</VBox.margin>
220-
<TextField fx:id="pathField" promptText="Path" AnchorPane.bottomAnchor="0.0"
221-
AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/>
222-
<Button mnemonicParsing="false" onAction="#filePickerHandler" text="..."
223-
AnchorPane.rightAnchor="0.0"/>
224-
</AnchorPane>
222+
<AnchorPane HBox.hgrow="ALWAYS">
223+
<TextField fx:id="pathField" promptText="Path" AnchorPane.bottomAnchor="0.0"
224+
AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/>
225+
<Button mnemonicParsing="false" onAction="#filePickerHandler" text="..."
226+
AnchorPane.rightAnchor="0.0"/>
227+
</AnchorPane>
228+
<Label text="?" onMouseClicked="#helpLabelHandler" id="locationHelp">
229+
<padding>
230+
<Insets bottom="5.0" left="5.0"/>
231+
</padding>
232+
<tooltip>
233+
<Tooltip
234+
text="Click to see how to automatically upload to a cloud service"/>
235+
</tooltip>
236+
</Label>
237+
</HBox>
225238
<Region VBox.vgrow="ALWAYS"/>
226239
<Button fx:id="goButton" maxWidth="Infinity" mnemonicParsing="false" onAction="#goButtonHandler"
227240
prefWidth="Infinity"

0 commit comments

Comments
 (0)