We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8407f3a commit 3957bceCopy full SHA for 3957bce
src/main/java/airsquared/blobsaver/app/Prefs.java
@@ -211,6 +211,16 @@ public void delete() {
211
}
212
213
214
+ public void rename(String name) { // intentionally different name
215
+ if (getName().equals(name) || Utils.isEmptyOrNull(name)) {
216
+ return;
217
+ }
218
+ new SavedDeviceBuilder(name).setEcid(getEcid()).setSavePath(getSavePath()).setIdentifier(getIdentifier())
219
+ .setBoardConfig(getBoardConfig().orElse(null)).setApnonce(getApnonce().orElse(null))
220
+ .setGenerator(getGenerator().orElse(null)).setIncludeBetas(doesIncludeBetas()).save().setBackground(isBackground());
221
+ delete();
222
223
+
224
public String getName() {
225
return node.name();
226
0 commit comments