Bugfix custom datadir doubleClick - Follow-up #392 #399

Closed
pablomartin4btc wants to merge 1 commit from qml-fix-custom-datadir-doubleclick into main AGit
pablomartin4btc commented 2024-04-15 02:30:48 +00:00 (Migrated from github.com)

This is a desktop-only (not mobile/ android) workaround to disable double-click on custom datadir which is on the StorageLocations.qml componennt.

Double-clicking was causing the file dialog to get open but losing focus and moving to the background, bringing upfront the main window which was useless because the file dialog is modal (issue raised originally by @MarnixCroes on PR #392 but still persists in ongoing PR #397).

This is a desktop-only (not mobile/ android) workaround to disable double-click on custom datadir which is on the `StorageLocations.qml` componennt. Double-clicking was causing the file dialog to get open but losing focus and moving to the background, bringing upfront the main window which was useless because the file dialog is modal ([issue](https://github.com/bitcoin-core/gui-qml/pull/392#pullrequestreview-1973457090) raised originally by @MarnixCroes on PR #392 but still [persists](https://github.com/bitcoin-core/gui-qml/pull/397#pullrequestreview-1998733695) in ongoing PR #397).
MarnixCroes (Migrated from github.com) reviewed 2024-04-15 14:51:33 +00:00
MarnixCroes (Migrated from github.com) left a comment

thanks for picking this up.
it doesn't fully fix the problem.
I can still repro sometimes, like +- 1 out of 10 times.
(double-checked I'm not making an error, like accidentally having the second click change the focus.)

thanks for picking this up. it doesn't fully fix the problem. I can still repro sometimes, like +- 1 out of 10 times. (double-checked I'm not making an error, like accidentally having the second click change the focus.)
pablomartin4btc commented 2024-04-15 14:58:01 +00:00 (Migrated from github.com)

thanks for picking this up. it doesn't fully fix the problem. I can still repro sometimes, like +- 1 out of 10 times. (double-checked I'm not making an error, like accidentally having the second click change the focus.)

Ok, thanks for testing it promptly. I couldn't reproduce the issue on Ubuntu, are you on Mac?

If we can't fully fix it, I'd need to investigate another approach and close this one.

> thanks for picking this up. it doesn't fully fix the problem. I can still repro sometimes, like +- 1 out of 10 times. (double-checked I'm not making an error, like accidentally having the second click change the focus.) Ok, thanks for testing it promptly. I couldn't reproduce the issue on Ubuntu, are you on Mac? If we can't fully fix it, I'd need to investigate another approach and close this one.
MarnixCroes commented 2024-04-15 15:02:30 +00:00 (Migrated from github.com)

are you on Mac?

no, Ubuntu 22.04.4 LTS

> are you on Mac? no, Ubuntu 22.04.4 LTS
pablomartin4btc commented 2024-04-15 15:45:50 +00:00 (Migrated from github.com)

@MarnixCroes perhaps it has to do with the OS double click (speed?) config, could you please try changing timer interval from 50 to 150 or 300? Thanks!

@MarnixCroes perhaps it has to do with the OS double click (speed?) config, could you please try changing timer interval from 50 to 150 or 300? Thanks!
MarnixCroes commented 2024-04-22 16:43:05 +00:00 (Migrated from github.com)

@MarnixCroes perhaps it has to do with the OS double click (speed?) config, could you please try changing timer interval from 50 to 150 or 300? Thanks!

I could repro with 150. (happened after 25 tries)
I could repro with 300, only after +- 100 tries

> @MarnixCroes perhaps it has to do with the OS double click (speed?) config, could you please try changing timer interval from 50 to 150 or 300? Thanks! I could repro with `150`. (happened after 25 tries) I could repro with `300`, only after +- 100 tries
pablomartin4btc commented 2024-04-23 02:38:13 +00:00 (Migrated from github.com)

I could repro with 150. (happened after 25 tries)
I could repro with 300, only after +- 100 tries

Thanks for testing it again, let's discuss it tomorrow with the rest of the team on the devs call, so far we can have this as a workaround to solve this bug until we find a better approach.

> I could repro with `150`. (happened after 25 tries) > I could repro with `300`, only after +- 100 tries Thanks for testing it again, let's discuss it tomorrow with the rest of the team on the devs call, so far we can have this as a workaround to solve this bug until we find a better approach.
pablomartin4btc commented 2024-05-01 21:37:53 +00:00 (Migrated from github.com)

Updates:

Updates: - Drafting the PR since it seems [the original issue can't be reproducible](https://github.com/bitcoin-core/gui-qml/pull/397#pullrequestreview-2034467887) anymore
pablomartin4btc commented 2024-05-04 05:31:01 +00:00 (Migrated from github.com)

Updates:

Updates: - Un-drafting it since [I could still repro](https://github.com/bitcoin-core/gui-qml/pull/397#pullrequestreview-2039253179) the issue.
pablomartin4btc commented 2024-05-27 15:32:00 +00:00 (Migrated from github.com)

Rebased to refresh CIs (#402). No code changes.

Rebased to refresh CIs (#402). No code changes.
hebasto commented 2024-08-12 10:17:07 +00:00 (Migrated from github.com)

Please rebase to resolve conflicts.

Please rebase to resolve conflicts.
pablomartin4btc commented 2024-08-12 15:29:36 +00:00 (Migrated from github.com)

Rebased as requested. No code changes.

Rebased as [requested](https://github.com/bitcoin-core/gui-qml/pull/399#issuecomment-2283587242). No code changes.
pablomartin4btc commented 2024-08-31 15:19:57 +00:00 (Migrated from github.com)

Updates:

  • Forgot to update the interval as per @MarnixCroes previous tests results.
Updates: - Forgot to update the interval as per @MarnixCroes previous [tests results](https://github.com/bitcoin-core/gui-qml/pull/399#issuecomment-2070182382).
jarolrod (Migrated from github.com) reviewed 2024-10-26 23:42:56 +00:00
jarolrod (Migrated from github.com) commented 2024-10-26 23:42:55 +00:00

I'm concept NACK on using a timer here

I'm concept NACK on using a timer here
pablomartin4btc (Migrated from github.com) reviewed 2024-10-28 12:10:41 +00:00
pablomartin4btc (Migrated from github.com) commented 2024-10-28 12:10:41 +00:00

I agree wasn't the best approach, let's see if this is still an issue after #427 and #428. I'll close this PR till then.

I agree wasn't the best approach, let's see if this is still an issue after #427 and #428. I'll close this PR till then.
Sign in to join this conversation.
No description provided.