From f99a49803faa04e2be3ce55749b8416b53b70f73 Mon Sep 17 00:00:00 2001 From: djowel Date: Sun, 15 Oct 2023 02:16:33 +0800 Subject: [PATCH] Set the icon properly --- examples/buttons/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/buttons/main.cpp b/examples/buttons/main.cpp index 05721d824..93f6446f6 100644 --- a/examples/buttons/main.cpp +++ b/examples/buttons/main.cpp @@ -126,7 +126,7 @@ auto make_buttons(view& view_) { if (auto p = reset.lock()) { - (*p)->icon(icons::lock); + (*p)->set_icon(icons::lock); p->enable(true); view_.refresh(*p); } @@ -143,7 +143,7 @@ auto make_buttons(view& view_) if (auto p = reset.lock()) { - (*p)->icon(icons::lock_open); + (*p)->set_icon(icons::lock_open); p->enable(false); view_.refresh(*p); }