Fixed
Details
Assignee
Marco PetersMarco PetersReporter
Marco PetersMarco PetersFix versions
Affects versions
Components
Priority
Minor
Details
Details
Assignee
Marco Peters
Marco PetersReporter
Marco Peters
Marco PetersFix versions
Affects versions
Components
Priority
Created 25 June 2020 at 14:34
Updated 20 October 2020 at 08:49
Resolved 25 June 2020 at 14:38
Reporty from Danny from SeaDAS:
I've noticed that on the Mac SNAP doesn't display the application name "SNAP" at the top of the main GUI. Instead it displays "[Empty]".
The cause of this is in SnapApp:
private String getEmptyTitle() { String title; if (Utilities.isMac()) { title = String.format("[%s]", "Empty"); } else { title = String.format("%s", getInstanceName()); } return title; }
Couldn't the following code be used instead? I've tried this and it displays fine on my Mac (at least when run in development). Is there a reason for specifically avoiding the call to getInstanceName() on the Mac?
private String getEmptyTitle() { String instanceName = getInstanceName(); if (instanceName != null && instanceName.length() > 0) { return String.format("%s", getInstanceName()); } else { return String.format("[%s]", "Empty"); } }