On MacOs "[EMPTY]" is displayed in the title bar instead of the application name

Description

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"); } }

Environment

None

GitHub Work

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created 25 June 2020 at 14:34
Updated 20 October 2020 at 08:49
Resolved 25 June 2020 at 14:38