From 2b394f5f93b7b1e02c40dc634e3e49399e14d4d1 Mon Sep 17 00:00:00 2001 From: Akshay Arora Date: Wed, 15 Jul 2020 22:57:24 +0530 Subject: [PATCH] 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 . --- electrum/gui/kivy/uix/dialogs/installwizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py index f2a8becd4..86d9637e5 100644 --- a/electrum/gui/kivy/uix/dialogs/installwizard.py +++ b/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,