Skip to content

Commit e8810a4

Browse files
committed
WebView2 데이터 디렉토리를 %LOCALAPPDATA%\DartLab\webview2로 격리
exe 옆에 .WebView2 폴더가 생기는 문제 해결
1 parent 1379c93 commit e8810a4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dartlab-desktop"
3-
version = "0.3.3"
3+
version = "0.3.4"
44
edition = "2024"
55
description = "DartLab AI Desktop Launcher for Windows"
66
license = "MIT"

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ fn main() {
121121
let window = wb.build(&event_loop).expect("Failed to create window");
122122
window.set_focus();
123123

124-
let webview = WebViewBuilder::new()
124+
let mut web_ctx = wry::WebContext::new(Some(paths::app_dir().join("webview2")));
125+
let webview = WebViewBuilder::with_web_context(&mut web_ctx)
125126
.with_html(SETUP_HTML)
126127
.build(&window)
127128
.expect("Failed to create webview");

0 commit comments

Comments
 (0)