Skip to content
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

Disable install button during installation #769

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

oscfdezdz
Copy link
Collaborator

@oscfdezdz oscfdezdz commented Jan 23, 2025

From the main commit:

Introduces a new installing state that is set before activating
`ext.install` action. To deal with cancellations, a new `install-status`
signal is added to ExmManager which is emitted whenever it happens and
reverts the button state to the last one it had, either default or
unsupported.

ExmSearchRow drops `is-installed` and `is-supported` properties in favor
of a new `manager` property to connect to ExmManager's `install-status`
signal.

Fix #673

@oscfdezdz oscfdezdz marked this pull request as draft January 23, 2025 18:41
@oscfdezdz oscfdezdz force-pushed the disable-install-button-during-installation branch 2 times, most recently from 9429a32 to e3f08cf Compare January 29, 2025 20:18
@oscfdezdz oscfdezdz marked this pull request as ready for review January 29, 2025 20:20
Copy link

@eken12345 eken12345 left a comment

Choose a reason for hiding this comment

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

Like this

Use shell_extensions_call_install_remote_extension/finish instead.
@oscfdezdz oscfdezdz force-pushed the disable-install-button-during-installation branch from e3f08cf to cb4b9be Compare February 1, 2025 12:25
Introduces a new installing state that is set before activating
`ext.install` action. To deal with cancellations, a new `install-status`
signal is added to ExmManager which is emitted whenever it happens
andreverts the button state to the last one it had, either default or
unsupported.

ExmSearchRow drops `is-installed` and `is-supported` properties in favor
of a new `manager` property to connect to ExmManager's `install-status
signal.
@oscfdezdz oscfdezdz force-pushed the disable-install-button-during-installation branch from cb4b9be to 0e14966 Compare February 12, 2025 19:34
@oscfdezdz
Copy link
Collaborator Author

I've also tried to bind the new installing state to the downloading state of the extensions, but by testing and checking gnome-shell code, it seems that the extensions state never changes to downloading.

@oscfdezdz
Copy link
Collaborator Author

I'll go ahead and merge this, it's been working as expected for the last few weeks and we introduce a new string here that would be good to have a few days or weeks before the next release. Any improvement to the approach of the patch could be done later on.

@oscfdezdz oscfdezdz merged commit baf813a into master Feb 12, 2025
1 check passed
@oscfdezdz oscfdezdz deleted the disable-install-button-during-installation branch February 12, 2025 22:04
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.

Disable install button during extension installation
2 participants