local: integrate yoda libcosmic and fix thumbnail hang
Some checks are pending
Validate .desktop files / validate (push) Waiting to run

This commit is contained in:
Lionel DARNIS 2026-05-18 12:22:47 +02:00
parent d1f63c570c
commit 22e5890a7c
16 changed files with 2388 additions and 310 deletions

View file

@ -7,10 +7,10 @@ use cosmic::cosmic_config::{self, CosmicConfigEntry};
use cosmic::iced::event::{self, Event};
use cosmic::iced::keyboard::{Event as KeyEvent, Key, Modifiers};
use cosmic::iced::mouse::{Event as MouseEvent, ScrollDelta};
use cosmic::iced::window::{self, set_mode};
use cosmic::iced::{
Alignment, Background, Border, Color, ContentFit, Length, Limits, Subscription,
Alignment, Background, Border, Color, ContentFit, Length, Limits, Subscription, exit, window,
};
use cosmic::iced::window::set_mode;
use cosmic::widget::menu::action::MenuAction;
use cosmic::widget::{self, Slider, nav_bar, segmented_button};
use cosmic::{Application, ApplicationExt, Element, action, cosmic_theme, executor, font, theme};
@ -951,6 +951,11 @@ impl Application for App {
}
}
fn on_app_exit(&mut self) -> Option<Self::Message> {
self.close();
None
}
fn on_nav_select(&mut self, id: nav_bar::Id) -> Task<Message> {
// Toggle open state and get clone of node data
let node_opt = match self.nav_model.data_mut::<ProjectNode>(id) {
@ -1606,7 +1611,8 @@ impl Application for App {
return self.update_config();
}
Message::WindowClose => {
process::exit(0);
self.close();
return exit();
}
}
Task::none()