summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-05 09:25:59 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-05 09:25:59 +0200
commit8472df82d0c4389eff9f1849dd91eb7c3a413920 (patch)
treea809858a3bd95bedb80a647cd658c2371796bb08 /src
parent93fae41fc286d74b38cdce3b7c107e86f2bd730d (diff)
Remove use of deprecated member function Fl_Menu_Item::setonly()
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index ccafa20d5..13d536c6f 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1474,8 +1474,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
if (!item->label()) break;
if (item->user_data() == window) {
if (!item->value()) {
- item->setonly();
- fl_sys_menu_bar->update();
+ Fl_MacOS_Sys_Menu_Bar_Driver::driver()->setonly(item);
}
break;
}