Browse Source

kivy: implement ElectrumGui.stop

patch-4
SomberNight 3 years ago
parent
commit
ed0dd6eb22
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 8
      electrum/gui/kivy/__init__.py

8
electrum/gui/kivy/__init__.py

@ -69,3 +69,11 @@ class ElectrumGui(BaseElectrumGui, Logger):
gui_object=self,
)
w.run()
def stop(self) -> None:
from kivy.app import App
from kivy.clock import Clock
app = App.get_running_app()
if not app:
return
Clock.schedule_once(lambda dt: app.stop())

Loading…
Cancel
Save