Upgrade Iced and render Markdown tables
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -25,10 +25,8 @@ fn main() -> iced::Result {
|
||||
if let Err(error) = engine::configure_metal_sources() {
|
||||
eprintln!("DS4Server: {error}");
|
||||
}
|
||||
iced::daemon(App::title, App::update, App::view)
|
||||
.subscription(App::subscription)
|
||||
.theme(|_, _| app_theme())
|
||||
.run_with(|| {
|
||||
iced::daemon(
|
||||
|| {
|
||||
let (main_window, open) = window::open(window::Settings {
|
||||
size: Size::new(1120.0, 720.0),
|
||||
min_size: Some(Size::new(760.0, 480.0)),
|
||||
@@ -44,5 +42,12 @@ fn main() -> iced::Result {
|
||||
..Default::default()
|
||||
});
|
||||
(App::load(main_window), open.map(Message::WindowOpened))
|
||||
})
|
||||
},
|
||||
App::update,
|
||||
App::view,
|
||||
)
|
||||
.title(App::title)
|
||||
.subscription(App::subscription)
|
||||
.theme(app_theme())
|
||||
.run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user