mirror of https://github.com/wayvr-org/wayvr.git
do not show tutorial if started with --show
This commit is contained in:
parent
3fe47baa2e
commit
77eb7e926e
|
|
@ -98,6 +98,7 @@ pub fn openvr_run(
|
||||||
app.session.no_autostart = no_autostart;
|
app.session.no_autostart = no_autostart;
|
||||||
|
|
||||||
if show_by_default {
|
if show_by_default {
|
||||||
|
app.session.config.tutorial_graduated = true;
|
||||||
app.tasks.enqueue_at(
|
app.tasks.enqueue_at(
|
||||||
TaskType::Overlay(OverlayTask::ShowHide),
|
TaskType::Overlay(OverlayTask::ShowHide),
|
||||||
Instant::now().add(Duration::from_secs(1)),
|
Instant::now().add(Duration::from_secs(1)),
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ pub fn openxr_run(
|
||||||
let modes = xr_instance.enumerate_environment_blend_modes(system, VIEW_TYPE)?;
|
let modes = xr_instance.enumerate_environment_blend_modes(system, VIEW_TYPE)?;
|
||||||
|
|
||||||
if show_by_default {
|
if show_by_default {
|
||||||
|
app.session.config.tutorial_graduated = true;
|
||||||
app.tasks.enqueue_at(
|
app.tasks.enqueue_at(
|
||||||
TaskType::Overlay(OverlayTask::ShowHide),
|
TaskType::Overlay(OverlayTask::ShowHide),
|
||||||
Instant::now().add(Duration::from_secs(1)),
|
Instant::now().add(Duration::from_secs(1)),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue