So I was dual booting Windows 10 with Kubuntu, I then decided to install Manjaro. Flashed it on a USB thumb drive with the dd command but it wasn't booting up. On a forum I saw someone recommend to change BIOS boot to Legacy instead of UEFI to boot into the USB, and that worked. So I installed Manjaro over the Kubuntu partition and it worked without any problems.
Today I turned on my laptop to only find out that it boots straight into Manjaro. Changed BIOS boot mode to UEFI, and it straight up boots into the Grub command menu. Can't do anything else there.
I can only boot into Manjaro by changing BIOS to Legacy mode.
If you can't make it out already I am a noob and pretty new to this, so if someone can help me restore grub with the option to boot into Win10 or Manjaro while using the UEFI boot, that'd would be really appreciated. Thank you very much.