Skip to content

Commit

Permalink
adapt comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Oct 24, 2023
1 parent 7db5573 commit dead9d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions odbc-api/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,11 @@ impl Environment {
panic!("Prompt is not supported on non windows platforms. Use `NoPrompt`.")
}
// We need a parent window, let's provide a message only window.
let event_loop = EventLoop::new()
.expect("Window event loop must be initialized from main thread and only once");
//
// Currently unsure in which situation this would fail. Can this only be intantiated
// once in the main thread? We could think about a version taking a raw window
// handle.
let event_loop = EventLoop::new().unwrap();
Some(
WindowBuilder::new()
.with_visible(false)
Expand Down

0 comments on commit dead9d4

Please sign in to comment.