Skip to content

Commit

Permalink
fix kobalte problems + delay showing windows until they're ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 31, 2024
1 parent a47fbab commit 9a5cf69
Show file tree
Hide file tree
Showing 11 changed files with 445 additions and 410 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"cva": "npm:class-variance-authority@^0.7.0",
"effect": "^3.7.2",
"mp4box": "^0.5.2",
"solid-js": "^1.7.8",
"solid-js": "^1.9.3",
"solid-markdown": "^2.0.13",
"solid-presence": "^0.1.8",
"solid-toast": "^0.5.0",
Expand Down
8 changes: 2 additions & 6 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2262,11 +2262,11 @@ async fn delete_auth_open_signin(app: AppHandle) -> Result<(), String> {
window.close().ok();
}

if let Some(window) = CapWindow::Main.get(&app) {
if let Some(window) = CapWindowId::Main.get(&app) {
window.close().ok();
}

while CapWindow::Main.get(&app).is_some() {
while CapWindowId::Main.get(&app).is_some() {
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
}

Expand Down Expand Up @@ -2473,10 +2473,6 @@ pub async fn run() {

tray::create_tray(&app_handle).unwrap();

CapWindow::InProgressRecording { position: None }
.show(app.app_handle())
.ok();

let app_handle_clone = app_handle.clone();
RequestStartRecording::listen_any(app, move |_| {
let app_handle = app_handle_clone.clone();
Expand Down
Loading

1 comment on commit 9a5cf69

@vercel
Copy link

@vercel vercel bot commented on 9a5cf69 Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.