fix(macos): call the tray store's real accessor in the Dock policy
The Dock-hiding policy read the tray settings through `.get()`, which does not exist on `TraySettingsState`; the method is `get_settings()`, as the same file already calls it twelve lines above. The call sits inside a macOS cfg block, so Linux and Windows compiled cleanly and only the two macOS release legs failed. Verified by a release build on the Mac mini. cc
This commit is contained in:
1 file changed
+1
-1
@@ -645,7 +645,7 @@ pub(crate) fn refresh_mac_dock_policy(tray_live: bool) {
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
let hide_dock = crate::settings_qt::tray()
|
||||
.get()
|
||||
.get_settings()
|
||||
.map(|settings| settings.mac_hide_dock)
|
||||
.unwrap_or(false);
|
||||
set_mac_dock_hidden(mac_dock_should_hide(
|
||||
|
||||
Reference in new issue
Block a user