code
code copied to clipboard
"Add from file" creates a second window that can't be closed
Describe the bug
When you click the "Add from file" button inside an instance to add mods, the app creates two identical windows, only one of which can be interacted with. In the image below, only the centered file picker can be clicked on or closed. The window in the bottom left cannot be moved, no buttons or folders can be picked, and it can't be closed by clicking "Cancel" or pressing escape. The rest of the Modrinth app is still usable but this window can't be removed. The only way to remove the window is to close the Modrinth app.
Steps to reproduce
- Go to any instance
- Select the dropdown arrow next to "Add content" and pick "Add from file"
- You now have two windows, one of which is not interactable
Expected behavior
The expected behavior is that I get one window and it behaves as a file picking window should, i.e., I can click on it.
Additional context
I am on Mac OS Ventura 13.4.1, using an M1 Macbook Pro. The Modrinth app is fully updated. This issue has been present in all versions of the app I have used.
I also have this problem. I use linux and am on Ubuntu 23.04. One of the windows end up being invisible and the main window freezes. This only happened to me after the mod count increased to 100+ in my modpack, and it works with smaller modpacks. Also I used the deb file. (This is later) I just deleted a bunch of curseforge mods because i needed to add some dependencies and there was a crash so i thought if i deleted the mods i would be able to add them again along side the dependencies and also see where the crash came from, but it ended up not reversing the bug and i still cant add from file.
Can partly confirm on Windows 11 and latest App version ( v0.6.3 ), clicking on text on 'Add from file' button (in context menu, not as selected) opens two windows instead of one, but they're both native and can be closed normally
issue still persists
Issue still present. On M2 Mac Mini, Mac OS Sonoma 14.2. Modrinth fully up to date. See screenshot below:
The file browsing window in focus is fully functional, but after selecting the file the file browsing window behind cannot be closed - Modrinth must be restarted.