Fixed issue #700 where not using multi-window caused the main window to not be able to be interacted with

This commit is contained in:
Adam Cosner 2024-11-19 20:35:04 -08:00 committed by Ashley Wulber
parent b14fde9033
commit 525a14cfb1

View file

@ -142,6 +142,7 @@ pub fn run<App: Application>(settings: Settings, flags: App::Flags) -> iced::Res
let (settings, mut flags, window_settings) = iced_settings::<App>(settings, flags);
#[cfg(not(feature = "multi-window"))]
{
flags.0.main_window = Some(iced::window::Id::RESERVED);
iced::application(
cosmic::Cosmic::title,
cosmic::Cosmic::update,