flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.22k stars 282 forks source link

PopUp file modified on disk #1159

Open hantangantan opened 3 months ago

hantangantan commented 3 months ago

Describe the bug
When pressing save button n times while save in progress n-1 popups appear after each other signaling that file was changed on hard drive.

To Reproduce

  1. Create/Open document
  2. tap save button multiple times (spam button)

Expected behavior
No popup boxes appear

Screenshots
image

Desktop (please complete the following information):

flxzt commented 3 months ago

can you run the application like mentioned in the bug report template and post the output? Thank you.

hantangantan commented 3 months ago

i only get this output within my terminal:

2024-07-26T15:11:17.450097Z DEBUG rnote: .. tracing subscriber initialized. then programm is started but detached from my terminal

flxzt commented 3 months ago

Detached from your terminal? That shouldn't happen. Your run command should be flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote.

Edit: Actually I can reproduce this.

hantangantan commented 3 months ago

Oh, I am sorry - the command is actually working - when i spammed the button first, simply no output was created.

I just tried again - now the app crashes when spamming the button.

Output log is: ** Adwaita:ERROR:../src/adw-toast-overlay.c:244:show_toast: assertion failed: (!info->widget) Bail out! Adwaita:ERROR:../src/adw-toast-overlay.c:244:show_toast: assertion failed: (!info->widget)