Fix usage of nonexistant function
Some checks failed
Build / build-deb (push) Blocked by required conditions
Build / build-appimage (push) Blocked by required conditions
Build / build-android (push) Blocked by required conditions
Build / build-windows (push) Blocked by required conditions
Build / build-gentoo (push) Failing after 1m6s
Build / download-system-deps (push) Successful in 4m13s
Build / get-source-code (push) Has been cancelled

This commit is contained in:
Zachary Hall 2024-12-22 13:03:35 -08:00
parent 19e1c862a1
commit a2c297592d
2 changed files with 2 additions and 2 deletions

View file

@ -289,7 +289,7 @@ void HaikuLooperWindow::MessageReceived(BMessage *msg) {
} break;
case CMD_SET_CAT: {
BBitmap *cat = NULL;
if (msg->FindBitmap("cat", &cat) != B_OK) {
if (msg->FindPointer("cat", &cat) != B_OK) {
cat = NULL;
}
UpdateCat(cat);

View file

@ -149,7 +149,7 @@ void HaikuPrefsWindow::MessageReceived(BMessage *msg) {
set_option<bool>("ui.enable_cat", enable_cat);
next_handler->PostMessage(CMD_UPDATE_LABEL_SETTING);
BMessage *cat_msg = new BMessage(CMD_SET_CAT);
if (enable_cat) cat_msg->AddBitmap("cat", cats[cat_id])
if (enable_cat) cat_msg->AddPointer("cat", cats[cat_id])
next_handler->PostMessage(cat_msg);
} break;
case CMD_REVERT: {