Merge branch 'main' into prospector/bump-skin-render-version

This commit is contained in:
Prospector
2026-07-21 16:20:00 -07:00
committed by GitHub
+8 -7
View File
@@ -699,15 +699,16 @@ pub async fn hide_ads_window<R: Runtime>(
reset: Option<bool>,
) -> crate::api::Result<()> {
let reset = reset.unwrap_or(false);
let state = app.state::<RwLock<AdsState>>();
let mut state = state.write().await;
if reset {
state.shown = false;
state.consent_overlay_shown = false;
}
if let Some(webview) = app.webviews().get("ads-window") {
let state = app.state::<RwLock<AdsState>>();
let mut state = state.write().await;
if reset {
state.shown = false;
state.consent_overlay_shown = false;
} else {
if !reset {
state.modal_shown = true;
if state.consent_overlay_shown {