Skip to content

Commit 1b3d691

Browse files
authored
Merge pull request #3469 from Peyton-Hill-CLS/add_default_watermark_enabled
Added a preference for whether the watermark is enabled by default when you click on an attachment in the olog.
2 parents 02441de + d173ce7 commit 1b3d691

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/AttachmentsViewController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ else if(attachments.isEmpty()){
213213
*/
214214
private void showImageAttachment() {
215215
URI uri = selectedAttachment.get().getFile().toURI();
216-
URI withWatermark = URI.create(uri + "?watermark=true");
216+
URI withWatermark = URI.create(uri + "?watermark=" + LogbookUIPreferences.show_log_watermark);
217217
ApplicationLauncherService.openResource(withWatermark,
218218
false, null);
219219
}

app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/LogbookUIPreferences.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public class LogbookUIPreferences {
4747
public static int query_list_size;
4848
@Preference
4949
public static String search_help;
50+
@Preference
51+
public static boolean show_log_watermark;
5052

5153

5254
static {

app/logbook/olog/ui/src/main/resources/log_olog_ui_preferences.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ query_list_size=15
5959

6060
# Name of the search help content. Language resolution and file extension is handled on service.
6161
search_help=SearchHelp
62+
63+
# Whether or not to show the watermark by default
64+
show_log_watermark=true

0 commit comments

Comments
 (0)