Skip to content

Commit

Permalink
Removing broken part of monitors example
Browse files Browse the repository at this point in the history
This worked on at least one platform at some point in time, but it
appears that at least with the current winit, the extra example would
always lead to an event loop error.
  • Loading branch information
ecton committed Nov 30, 2024
1 parent 59222ce commit bcdd330
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/monitors.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use cushy::kludgine::app::{Monitor, Monitors};
use cushy::widget::{MakeWidget, WidgetInstance, WidgetList};
use cushy::{Application, Open, PendingApp};
use cushy::Open;

fn main() -> cushy::Result {
// Monitor information is only available through winit after the application
// has started up.
assert!(PendingApp::default().as_app().monitors().is_none());

cushy::run(|app| {
let monitors = app.monitors();

Expand Down

0 comments on commit bcdd330

Please sign in to comment.