Skip to content

[Bug] Cannot manage Toolbar Icon configuration if ImHex is on a Virtual Desktop #2230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
eltoddo opened this issue May 7, 2025 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@eltoddo
Copy link

eltoddo commented May 7, 2025

Operating System

Windows

What's the issue you encountered?

Not a big priority to resolve this, since it can be worked around pretty easily. But it threw me for a loop when getting started with ImHex...

Windows 10 Pro - 22H2. Let me know what other info you might want from my environment.

I was trying out ImHex for the first time and was surprised when I ran into a challenging UI bug in the Settings menu, with the Toolbar Icon configuration UI. The first time I experienced the bug, the first icon I added to the default Toolbar Icons list resulted in everything previously in the list disappearing, leaving only the new Toolbar icon I dragged, alone, in the first icon spot. When I tried dragging any icons, new or previously present, back into the Toolbar Icon manager panel, IF the icon was actually allowed to be dropped, it would replace my previous Toolbar Icon, again new icon sitting by itself. The behavior behind the "IF" seems to be determined by whatever icon is dragged over. Subsequent attempts to add available icons will only work if the new icon appeared above the currently placed icon in the list of available icons, when both were previously in the list. Current icon will be replaced (not added) by the above icon.

In further attempts to reproduce the issue, I found that the app opened with the correct toolbar icons, and as long as any aren't removed, you'll be able to place one of the available icons, but it will replace something in your current Toolbar icon list. Removing any icons from the Toolbar resulted in the icon being properly removed. Adding it back will only work occasionally, with the same behavior to what was stated the first time I experienced the bug (my list wasn't cleared this time).

Basically, this bug appears to exhibit itself by making it impossible to add more than 1 single icon to the Toolbar from a virtual desktop. There's a chance your whole toolbar list will be clobbered by trying to duplicate this; plan accordingly.

Searching around, nobody else seems to have come across this, at least in any public place I searched. Haven't been to the discord yet, but I'll be over there soon enough.

Since I recently started using Windows 10's built-in Virtual Desktops feature, I suspected the issue could be related to the fact that I was trying out ImHex on a new Virtual Desktop (the only app on it, if that matters). I closed ImHex on the virtual desktop and re-opened it on my Main Desktop, immediately went to Settings -> Toolbar and started dragging icons over, finding it working just fine on the Main Desktop.

How can the issue be reproduced?

Note: this procedure will probably clobber your current Toolbar Icon configuration. If you care, find a way to back it up or reconfigure from screenshot.

Reproduced on Windows 10 Pro: 22H2.

Steps to Reproduce

  • Use {WinKey}+{Tab} to open Task View
  • Select +New Desktop (not sure if it matters, but I renamed the new Desktop before doing anything with ImHex)
  • Switch to the new Virtual Desktop
  • Launch ImHex same as you would on primary desktop
  • Open Settings -> Toolbar <--- does the list of icons look like it should?
  • Try adding an icon from the bottom of the list. <--- did the list expand as expected, or did an icon get replaced?
  • Try adding an icon from the top of the list <--- likely not to work, due to possible UI array indexing error.
  • Try removing an icon from the Toolbar <--- Should work just fine.
  • Try adding that icon back <--- This never worked properly
  • Try adding an icon above the removed one on the list. <--- This will probably just replace a current icon.
  • Try adding an icon below the previously removed one on the list <--- Never worked for me.

Switch back to primary desktop, repeat procedure there.
Everything should work normally on the primary desktop.

If you really want to experience the worst side of this bug, with ImHex on a virtual desktop remove all your icons and try adding them back. Good luck! You'll end up with just one.

ImHex Version

1.37.4

ImHex Build Type

  • Nightly or built from sources

Installation type

MSI installer

Additional context?

I'm an experienced developer, so if you need more info, I am vary capable of getting it, regardless of technical complexity. Let me know if you need anything else.

Bug is pretty easy for me to duplicate. So if we want to troubleshoot my environment I can make myself available if a remote debug session would help.

@eltoddo eltoddo added the bug Something isn't working label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant