Browse Source

Size the wizard instantly, do not wait.

Fixes a UI issue in kivy Install Wizzard.
The Choices UI was displayed in a small vertical line for a split second, before being resized to correct size.
This fixes that by ensuring resizing is done before next frame is displayed https://kivy.org/doc/stable/api-kivy.clock.html#schedule-before-frame .
bip39-recovery
Akshay Arora 5 years ago
committed by GitHub
parent
commit
2b394f5f93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      electrum/gui/kivy/uix/dialogs/installwizard.py

2
electrum/gui/kivy/uix/dialogs/installwizard.py

@ -590,7 +590,7 @@ class WizardDialog(EventsDialog):
self.app = App.get_running_app()
self.run_next = kwargs['run_next']
self._trigger_size_dialog = Clock.create_trigger(self._size_dialog)
self._trigger_size_dialog = Clock.create_trigger(self._size_dialog, -1)
# note: everything bound here needs to be unbound as otherwise the
# objects will be kept around and keep receiving the callbacks
Window.bind(size=self._trigger_size_dialog,

Loading…
Cancel
Save