Flatpak issue kde

What ever app I download by using flatpak using the terminal for example flatpak install vlc, I have to restart the pc in order for it to show up in the menu or it doesn’t show

might be related: https://www.reddit.com/r/swaywm/comments/vm2c69/flatpak_apps_do_not_appear_in_the_menu/

also, make sure to read this: https://wiki.archlinux.org/title/Flatpak - especially on this part: Add Flatpak .desktop files to your menu