Skip to content

Commit 6b49c75

Browse files
committed
stuff
1 parent 442f75d commit 6b49c75

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/app/src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ class application : public ruisapp::application{
9191
// ruis::ZipFile zf(papki::FSFile::New("res.zip"), "test.gui.stob");
9292
// std::shared_ptr<ruis::widget> c = ruis::gui::inst().inflater().Inflate(zf);
9393

94-
ASSERT(c.get().try_get_widget_as<ruis::push_button>("show_VK_button"))
95-
std::dynamic_pointer_cast<ruis::push_button>(c.get().try_get_widget("show_VK_button"))->click_handler = [this](ruis::push_button&){
96-
this->show_virtual_keyboard();
94+
utki::assert(c.get().try_get_widget_as<ruis::push_button>("show_VK_button"), SL);
95+
std::dynamic_pointer_cast<ruis::push_button>(c.get().try_get_widget("show_VK_button"))->click_handler = [](ruis::push_button& b){
96+
b.context.get().window().set_virtual_keyboard_visible(true);
9797
};
9898

9999
std::dynamic_pointer_cast<ruis::push_button>(c.get().try_get_widget("push_button_in_scroll_container"))->click_handler = [this](ruis::push_button&){

0 commit comments

Comments
 (0)