Skip to content

Re-register global shortcuts on settings import #315

Description

@Kirtan-pc

Description

When importing a settings backup, the new settings are saved and updated in the cache, but the active global shortcuts register does not unregister old keybindings and register new ones immediately. The new key combinations do not take effect until the application is restarted.

Steps to Reproduce

  1. Set a global hotkey to Ctrl+Alt+P and verify it works.
  2. Import a settings backup file that changes the togglePause hotkey to Ctrl+Alt+K.
  3. Try using Ctrl+Alt+K to toggle pause immediately without restarting.
  4. Observe that the old key combo is still active and the new one does not work.

Expected Behaviour

Importing a settings backup should trigger an immediate unregister and re-registration of global shortcuts in the main process.

Actual Behaviour

Global shortcuts are written to the configuration file but the runtime keybindings are not updated until the app is restarted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions