Skip to content

Adding in option to disable double click on previews - #2421

Open
Pauan wants to merge 3 commits into
Acly:mainfrom
Pauan:feat/double-click
Open

Adding in option to disable double click on previews#2421
Pauan wants to merge 3 commits into
Acly:mainfrom
Pauan:feat/double-click

Conversation

@Pauan

@Pauan Pauan commented Apr 3, 2026

Copy link
Copy Markdown

Prevents accidentally applying an image.

Defaults to true, so this doesn't change existing behavior.

Fixes #2293

def apply_result(self, item: QListWidgetItem):
job_id, index = self._history.item_info(item)
self.model.apply_generated_result(job_id, index)
if settings.preview_double_click_apply:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested it, but this looks like it would prevent applying an image completely, not just via double click, but also the apply button

Instead the conditional should be at the point where the handler is registered, ie. in HistoryWidget.__init__ where it says self.itemDoubleClicked

@Acly

Acly commented Apr 10, 2026

Copy link
Copy Markdown
Owner

We can keep the setting, but I'd prefer no UI for now. I don't think it's super vital and the interface settings easily become cluttered. Remove the translation strings and UI modification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disable double click

2 participants