Skip to content

Commit b803e2b

Browse files
committed
change property name
1 parent 6805081 commit b803e2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/Preferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Preferences {
3333
@Preference
3434
public static String default_search_query;
3535
@Preference
36-
public static String default_title_snapshot_date_format;
36+
public static String default_snapshot_name_date_format;
3737

3838
static
3939
{

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SnapshotController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ private void takeSnapshot() {
289289
List<TableEntry> tableEntries = createTableEntries(snapshots.get(0));
290290
snapshotTable.updateTable(tableEntries, snapshots, showLiveReadbackProperty.get(), false, showDeltaPercentage);
291291

292-
if (!Preferences.default_title_snapshot_date_format.equals("")) {
293-
SimpleDateFormat formater = new SimpleDateFormat(Preferences.default_title_snapshot_date_format);
292+
if (!Preferences.default_snapshot_name_date_format.equals("")) {
293+
SimpleDateFormat formater = new SimpleDateFormat(Preferences.default_snapshot_name_date_format);
294294
snapshotNameProperty.set(formater.format(new Date()));
295295
}
296296

app/save-and-restore/app/src/main/resources/save_and_restore_preferences.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ search_result_page_size=30
2323
default_search_query=tags=golden
2424

2525
# If declared add a date automatically in the name of the snapshot "Take Snapshot"
26-
#default_title_snapshot_date_format=yyyy-MM-dd HH:mm:ss
26+
#default_snapshot_name_date_format=yyyy-MM-dd HH:mm:ss

0 commit comments

Comments
 (0)