Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FerroUI
Submodule FerroUI updated 616 files
2 changes: 1 addition & 1 deletion crates/ferrodesign-app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl ApplicationImpl for App {
if let Some(shell) = weak.upgrade() {
if !shell.command("commit-edit") { event.set_cancel(true); }
}
});
}).detach();
desktop.set_main_window(Some(window));
}
SHELL.with(|slot| *slot.borrow_mut() = Some(shell));
Expand Down
4 changes: 2 additions & 2 deletions crates/ferrodesign-app/src/prototype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use ferrodesign_core::{
PrototypeScene, PrototypeTimer, Transition, TransitionKind, Trigger, Viewport, MAX_DOCUMENT_DEPTH,
};
use ferroui_base::animation::{Clock, IClock, PlayState, TimeSpan};
use ferroui_base::reactive::{AnonymousObserver, IDisposable, IObservable};
use ferroui_base::reactive::{AnonymousObserver, IDisposable, IObservable, Subscription};
use ferroui_base::threading::{DispatcherPriority, DispatcherTimer};
use ferroui_base::Ref;
use std::{
Expand Down Expand Up @@ -53,7 +53,7 @@ struct AuthoredSnapshot {
}

struct ScheduledTimer {
subscription: Rc<dyn IDisposable>,
subscription: Subscription,
}

pub struct PrototypeRuntime {
Expand Down
4 changes: 2 additions & 2 deletions crates/ferrodesign-app/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use ferroui_base::layout::{Orientation, VerticalAlignment};
use ferroui_base::media::{FontWeight, TextWrapping};
use ferroui_base::metadata::from_markup_value;
use ferroui_base::utilities::{Uri, UriKind};
use ferroui_base::reactive::IDisposable;
use ferroui_base::reactive::{IDisposable, Subscription};
use ferroui_base::threading::{DispatcherPriority, DispatcherTimer};
use std::time::{Duration, Instant};
use ferroui_base::{BoxedValue, ObjectType, Ref, Thickness, WeakRef};
Expand Down Expand Up @@ -72,7 +72,7 @@ pub struct EditorShell {
prototype_targets: RefCell<Vec<NodeId>>,
prototype: Rc<PrototypeRuntime>,
pending_save: Cell<bool>,
pending_save_timer: RefCell<Option<Rc<dyn IDisposable>>>,
pending_save_timer: RefCell<Option<Subscription>>,
save_serializations: Cell<u64>,
last_serialization_ms: Cell<f64>,
scene_frames: Cell<u64>,
Expand Down
Loading