Skip to content

Commit

Permalink
fix(plugin): call update on icon after changing tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
benthillerkus committed Mar 31, 2022
1 parent b816880 commit ed3b9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion windows/betrayal_plugin.cpp
Expand Up @@ -234,6 +234,7 @@ namespace Betrayal
}

icon->set_tooltip(tooltip);
icon->update();
result->Success(flutter::EncodableValue(true));
};

Expand Down Expand Up @@ -279,7 +280,7 @@ namespace Betrayal
};

#pragma warning(disable : 4244)
// https://cs.github.com/openjdk/jdk/blob/6013d09e82693a1c07cf0bf6daffd95114b3cbfa/src/java.desktop/windows/native/libawt/windows/awt_TrayIcon.cpp#L649
// https://cs.github.com/openjdk/jdk/blob/6013d09e82693a1c07cf0bf6daffd95114b3cbfa/src/java.desktop/windows/native/libawt/windows/awt_TrayIcon.cpp#L649
HICON CreateIconFromBytes(HWND hWnd, int width, int height, uint32_t *bytes, TrayIcon *icon)
{

Expand Down

0 comments on commit ed3b9fe

Please sign in to comment.