Skip to content

Commit

Permalink
Merge pull request #88932 from bruvzg/fix_indicatore_destroy
Browse files Browse the repository at this point in the history
[macOS/Windows] Fix application indicator destruction.
  • Loading branch information
akien-mga authored Feb 27, 2024
2 parents ac43768 + a008480 commit 7682bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4905,7 +4905,7 @@
}

// Destroy all status indicators.
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
[[NSStatusBar systemStatusBar] removeStatusItem:E->value.item];
}

Expand Down
2 changes: 1 addition & 1 deletion platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5539,7 +5539,7 @@ DisplayServerWindows::~DisplayServerWindows() {
cursors_cache.clear();

// Destroy all status indicators.
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
NOTIFYICONDATAW ndat;
ZeroMemory(&ndat, sizeof(NOTIFYICONDATAW));
ndat.cbSize = sizeof(NOTIFYICONDATAW);
Expand Down

0 comments on commit 7682bc3

Please sign in to comment.