diff --git a/sphaira/CMakeLists.txt b/sphaira/CMakeLists.txt index 9b2c0b9..90e9c08 100644 --- a/sphaira/CMakeLists.txt +++ b/sphaira/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) -set(sphaira_VERSION 0.11.0) +set(sphaira_VERSION 0.11.1) project(sphaira VERSION ${sphaira_VERSION} diff --git a/sphaira/source/ui/menus/filebrowser.cpp b/sphaira/source/ui/menus/filebrowser.cpp index 6b2953d..7a2f392 100644 --- a/sphaira/source/ui/menus/filebrowser.cpp +++ b/sphaira/source/ui/menus/filebrowser.cpp @@ -2130,7 +2130,7 @@ void Menu::SetSplitScreen(bool enable) { m_split_screen = enable; if (m_split_screen) { - const auto change_view = [this](auto& new_view){ + const auto change_view = [this](auto new_view){ if (view != new_view) { view->OnFocusLost(); view = new_view; @@ -2145,10 +2145,10 @@ void Menu::SetSplitScreen(bool enable) { view_right = std::make_shared(this, view->m_path, view->GetFsEntry(), ViewSide::Right); change_view(view_right); - SetAction(Button::LEFT, Action{[&](){ + SetAction(Button::LEFT, Action{[this, change_view](){ change_view(view_left); }}); - SetAction(Button::RIGHT, Action{[&](){ + SetAction(Button::RIGHT, Action{[this, change_view](){ change_view(view_right); }}); } else {