diff --git a/client/scenes/app_launcher.cpp b/client/scenes/app_launcher.cpp index 2015b185..ca8e2e24 100644 --- a/client/scenes/app_launcher.cpp +++ b/client/scenes/app_launcher.cpp @@ -116,8 +116,7 @@ app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const st auto res = clicked::None; auto t0 = std::chrono::steady_clock::now(); bool app_starting = start_time != std::chrono::steady_clock::time_point{} and - t0 - start_time < 10s and - stream.current_state() != scenes::stream::state::streaming; + t0 - start_time < 10s; auto cancel_size = ImGui::CalcTextSize(cancel.c_str()); diff --git a/client/scenes/app_launcher.h b/client/scenes/app_launcher.h index b9ac228b..7566013d 100644 --- a/client/scenes/app_launcher.h +++ b/client/scenes/app_launcher.h @@ -60,6 +60,11 @@ public: // cancel: text to display on the quit/disconnect/cancel button clicked draw_gui(imgui_context &, const std::string & cancel); + void reset() + { + start_time = {}; + } + void operator()(wivrn::to_headset::application_list && apps); void operator()(wivrn::to_headset::application_icon && icon); }; diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 5a595ae3..13ba27c8 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -526,6 +526,7 @@ void scenes::stream::on_unfocused() clear_swapchains(); left_hand.reset(); right_hand.reset(); + apps.reset(); imgui_ctx.reset(); } diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index d7fe766a..fa583351 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -979,6 +979,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0})) { + apps.reset(); network_session->send_control(from_headset::get_application_list{ .language = application::get_messages_info().language, .country = application::get_messages_info().country,