mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: ignore duplicate theme change notification on macOS
(cherry picked from commit 90b43d186a)
This commit is contained in:
parent
f1cf91cbfe
commit
c4704010a9
1 changed files with 5 additions and 0 deletions
|
|
@ -92,9 +92,14 @@ end;
|
|||
|
||||
procedure TDCCocoaApplication.observeValueForKeyPath_ofObject_change_context(
|
||||
keyPath: NSString; object_: id; change: NSDictionary; context_: pointer);
|
||||
var
|
||||
prior: NSNumber;
|
||||
begin
|
||||
Inherited observeValueForKeyPath_ofObject_change_context( keyPath, object_, change, context_ );
|
||||
if keyPath.isEqualToString(NSSTR('effectiveAppearance')) then begin
|
||||
prior:= NSNumber( change.valueForKey( NSSTR('notificationIsPrior') ) );
|
||||
if prior.intValue > 0 then
|
||||
Exit;
|
||||
TDarwinApplicationUtil.themeNotify;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue