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
6 changes: 3 additions & 3 deletions crates/kas-core/src/event/cx/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ impl<'a> EventCx<'a> {
let id = widget.id();
log::trace!(
"start_key_event: window={id}, physical_key={:?}, logical_key={:?}, without_modifiers={:?}",
&event.physical_key,
&event.logical_key,
&event.key_without_modifiers
event.physical_key,
event.logical_key,
event.key_without_modifiers
);

let opt_cmd = self
Expand Down
6 changes: 3 additions & 3 deletions crates/kas-core/src/layout/sizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ impl SolveCache {
);
log::debug!(
"find_constraints: min={:?}, ideal={:?}, margins={:?}",
&self.min,
&self.ideal,
&self.margins
self.min,
self.ideal,
self.margins
);
self.last_width = self.ideal.0;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/kas-core/src/runner/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ where
while let Some(pending) = self.shared.pending.pop_front() {
match pending {
Pending::Update => {
for (_, window) in self.windows.iter_mut() {
for window in self.windows.values_mut() {
window.update(&self.data);
}
}
Pending::ConfigUpdate(action) => {
for (_, window) in self.windows.iter_mut() {
for window in self.windows.values_mut() {
window.config_update(&mut self.shared, &self.data, action);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/kas-widgets/src/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ mod AlertUnsaved {
#[derive(Debug)]
pub enum TextEditResult {
Cancel,
Ok(String),
Ok(std::rc::Rc<String>),
}

#[derive(Clone, Debug)]
Expand Down Expand Up @@ -334,7 +334,7 @@ mod TextEdit {

fn close(&mut self, cx: &mut EventCx, commit: bool) -> IsUsed {
cx.push(if commit {
TextEditResult::Ok(self.edit.clone_string())
TextEditResult::Ok(self.edit.clone_text())
} else {
TextEditResult::Cancel
});
Expand Down
Loading
Loading