mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2026-01-01 21:06:08 +00:00
chore: formatting
This commit is contained in:
parent
22aa14417b
commit
4b923c88bf
1 changed files with 11 additions and 3 deletions
|
|
@ -149,12 +149,20 @@ impl PopupWindow {
|
|||
let current_size = self.logical_size.get();
|
||||
|
||||
if current_size == new_size {
|
||||
info!("Popup resize skipped - size unchanged: {}x{}", width, height);
|
||||
info!(
|
||||
"Popup resize skipped - size unchanged: {}x{}",
|
||||
width, height
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
info!("Requesting popup resize from {}x{} to {}x{}",
|
||||
current_size.width(), current_size.height(), width, height);
|
||||
info!(
|
||||
"Requesting popup resize from {}x{} to {}x{}",
|
||||
current_size.width(),
|
||||
current_size.height(),
|
||||
width,
|
||||
height
|
||||
);
|
||||
self.logical_size.set(new_size);
|
||||
self.set_size(WindowSize::Logical(slint::LogicalSize::new(width, height)));
|
||||
RenderableWindow::request_redraw(self);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue