Skip to content

Commit 66fc6c7

Browse files
dev: set content protected false for debug builds
1 parent bb7ae58 commit 66fc6c7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src-tauri/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ fn main() {
117117
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
118118
}
119119

120+
// In debug builds, allow window content to be visible
121+
#[cfg(debug_assertions)]
122+
{
123+
let window = app.get_window("main")?;
124+
window.set_content_protected(false)?;
125+
}
126+
120127
Ok(())
121128
})
122129
.run(tauri::generate_context!())

0 commit comments

Comments
 (0)