[gnome-maps] sidebar: Don't show spinner if an error label is showing
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] sidebar: Don't show spinner if an error label is showing
- Date: Tue, 31 Mar 2020 21:30:14 +0000 (UTC)
commit d89f3ea6df023109de89c7ca6208cd8c47ebbe79
Author: Marcus Lundblad <ml update uu se>
Date: Tue Mar 31 23:24:16 2020 +0200
sidebar: Don't show spinner if an error label is showing
Also reset error label when showing spinner (starting
progress).
Fixes #255
src/sidebar.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/sidebar.js b/src/sidebar.js
index 32946654..5d8fa8b4 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -244,8 +244,9 @@ var Sidebar = GObject.registerClass({
});
this._query.connect('notify', () => {
- if (this._query.isValid()) {
+ if (this._query.isValid() && this._errorLabel.label === '') {
this._instructionStack.visible_child = this._instructionSpinner;
+ this._errorLabel.label = '';
} else if (this._instructionStack.visible_child !== this._errorLabel) {
if (this._query.transportation === RouteQuery.Transportation.TRANSIT) {
this._clearTransitOverview();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]