MacPass doesn't keep icon/text preference in toolbar
Describe the bug When I click in MacPass' toolbar and select “Icon Only”, it reverts my preference back to the default (“Icon and Text”) when I lock the screen or close and reopen my MacBook's lid.
To Reproduce
- Right click on MacPass' toolbar.
- Select “Icon Only”.
- Lock the screen (
Cmd + Ctrl + Q) or close the noebook's lid. - Wait for a few seconds.
- Login again, and the toolbar will be showing “Icon and Text” instead of my previous preference (“Icon Only”).
Expected behavior Keep “Icon Only” or whatever toolbar layout selected.
Desktop (please complete the following information):
- macOS: 12.3.1
- Version: 0.8.1 (26030)
Since the data stored for toolbar setup is entirely done by AppKit I have no real clue why do you see this behaviour. Can you try to show the prefs by running the following in Terminal:
defaults read com.hicknhacksoftware.MacPass "NSToolbar Configuration MainWindowToolbar"
If you change something, the values should change as well so if there's something not working this seems like a problem with defaultsd
{
"TB Default Item Identifiers" = (
"TOOLBAR_ADD_ENTRY",
"TOOLBAR_DELETE",
"TOOLBAR_ADD_GROUP",
"TOOLBAR_AUTOTYPE",
"TOOLBAR_ACTION",
NSToolbarFlexibleSpaceItem,
"TOOLBAR_SEARCH",
NSToolbarFlexibleSpaceItem,
"TOOLBAR_LOCK",
"TOOLBAR_INSPECTOR"
);
"TB Display Mode" = 1;
"TB Icon Size Mode" = 1;
"TB Is Shown" = 1;
"TB Item Identifiers" = (
"TOOLBAR_SEARCH",
NSToolbarFlexibleSpaceItem,
"TOOLBAR_ACTION",
"TOOLBAR_LOCK",
"TOOLBAR_INSPECTOR"
);
"TB Size Mode" = 1;
}
When I change the toolbar settings, option "TB Display Mode" = 1; changes to "TB Display Mode" = 2;. But if I lock the screen and log back in, "TB Display Mode" = 1; comes back.
I’m about to get a machine with macOS 12 so I might be able to shine some light on the issue.