Mercurial > libervia-desktop-kivy
comparison cagou/core/platform_/base.py @ 456:2cfb9f7a6b62
platform (base): call again "open_url" after decrypting a file:
"open_url" is called again instead of directly _open, because it can call a platform
specific open which can work now that the file has been decrypted.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 01 Apr 2020 23:59:00 +0200 |
parents | ddca5a837029 |
children | 3c9ba4a694ef |
comparison
equal
deleted
inserted
replaced
455:642cd2435e26 | 456:2cfb9f7a6b62 |
---|---|
121 msg = f"Can't find ancestor QuickWidget of {wid}" | 121 msg = f"Can't find ancestor QuickWidget of {wid}" |
122 log.error(msg) | 122 log.error(msg) |
123 G.host.errback(exceptions.InternalError(msg)) | 123 G.host.errback(exceptions.InternalError(msg)) |
124 return | 124 return |
125 G.host.downloadURL( | 125 G.host.downloadURL( |
126 parsed_url, self._open, G.host.errback, profile=quick_widget.profile | 126 parsed_url, self.open_url, G.host.errback, profile=quick_widget.profile |
127 ) | 127 ) |
128 else: | 128 else: |
129 self._open(url) | 129 self._open(url) |