window: Resize to natural on map
Only at this point we can be certain about the screen info like size an scaling factor.
This commit is contained in:
parent
6992d16670
commit
171077ffc7
3 changed files with 22 additions and 5 deletions
|
|
@ -197,7 +197,7 @@ mod imp {
|
|||
/// Currently EXIF data
|
||||
pub(super) metadata: RefCell<Metadata>,
|
||||
|
||||
#[property(get)]
|
||||
#[property(get=Self::image_size_available)]
|
||||
_image_size_available: bool,
|
||||
|
||||
/// Current pointer position
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ impl imp::LpImage {
|
|||
self.emmit_metadata_changed();
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn image_size_available(&self) -> bool {
|
||||
self.obj().image_size() > (0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
impl LpImage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue