Pipeline icon indicating copy to clipboard operation
Pipeline copied to clipboard

`AdwMessageDialog`s offset

Open TheEvilSkeleton opened this issue 2 years ago • 4 comments

When presenting an AdwMessageDialog the second time, it offsets:

Screencast from 2023-03-26 13-49-54.webm

TheEvilSkeleton avatar Mar 26 '23 17:03 TheEvilSkeleton

This is a really weird issue. Do you have any idea what may be the issue there?

Schmiddiii avatar Mar 27 '23 09:03 Schmiddiii

This is an uneducated guess, as I don't understand Rust, but I assume that it tries to create a dialog on top of the first dialog. I have never used AdwMessageDialog directly from the UI file. Usually, I implement AdwMessageDialogs from code (e.g. Python)

TheEvilSkeleton avatar Mar 27 '23 14:03 TheEvilSkeleton

FWIW, the Import dialog doesn't reproduce this problem

TheEvilSkeleton avatar Mar 27 '23 14:03 TheEvilSkeleton

It actually never creates a second dialog, it is only one dialog that is reused (see the hide-on-close-property). Maybe I will rewrite this dialog to be more in-line with the import-dialog, but that would be pretty low priority.

Schmiddiii avatar Mar 27 '23 14:03 Schmiddiii