Feat: make some stuff optional for the CLAP/VST version

This commit is contained in:
2026-02-21 13:23:43 +01:00
parent 77d5235d92
commit ab353edc0b
9 changed files with 42 additions and 19 deletions

View File

@@ -200,6 +200,9 @@ impl App {
}
pub fn maybe_show_onboarding(&mut self) {
if self.plugin_mode {
return;
}
if self.ui.modal != Modal::None {
return;
}

View File

@@ -1,10 +1,8 @@
mod block_renderer;
use std::sync::atomic::{AtomicBool, AtomicI64, AtomicU32, AtomicU64, Ordering};
use std::sync::Arc;
use std::time::Duration;
use block_renderer::BlockCharBackend;
use cagire::block_renderer::BlockCharBackend;
use clap::Parser;
use doux::EngineMetrics;
use eframe::NativeOptions;

View File

@@ -15,5 +15,8 @@ pub mod theme;
pub mod views;
pub mod widgets;
#[cfg(feature = "block-renderer")]
pub mod block_renderer;
#[cfg(feature = "desktop")]
pub mod input_egui;

View File

@@ -74,6 +74,7 @@ const STANDALONE_ONLY: &[OptionsFocus] = &[
OptionsFocus::MidiInput1,
OptionsFocus::MidiInput2,
OptionsFocus::MidiInput3,
OptionsFocus::ResetOnboarding,
];
/// Section layout: header line, divider line, then option lines.

View File

@@ -232,17 +232,19 @@ pub fn render(frame: &mut Frame, app: &App, link: &LinkState, area: Rect) {
render_option_line("Input 3", &midi_in_3, focus == OptionsFocus::MidiInput3, &theme),
]);
}
lines.push(Line::from(""));
lines.extend([
render_section_header("ONBOARDING", &theme),
render_divider(content_width, &theme),
render_option_line(
"Reset guides",
&onboarding_str,
focus == OptionsFocus::ResetOnboarding,
&theme,
),
]);
if !app.plugin_mode {
lines.push(Line::from(""));
lines.extend([
render_section_header("ONBOARDING", &theme),
render_divider(content_width, &theme),
render_option_line(
"Reset guides",
&onboarding_str,
focus == OptionsFocus::ResetOnboarding,
&theme,
),
]);
}
let total_lines = lines.len();
let max_visible = padded.height as usize;