[gnome-maps] osmEditDialog: Hide "Next" button when selecting type
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEditDialog: Hide "Next" button when selecting type
- Date: Mon, 3 Apr 2017 21:35:47 +0000 (UTC)
commit fc26fdbd23add523703af62e2d997366bb93e794
Author: Marcus Lundblad <ml update uu se>
Date: Sun Mar 12 09:05:33 2017 +0100
osmEditDialog: Hide "Next" button when selecting type
Hide the "Next" button in the dialog when showing the POI type-selection
page.
https://bugzilla.gnome.org/show_bug.cgi?id=779927
src/osmEditDialog.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 0100cff..3e888cf 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -337,6 +337,7 @@ const OSMEditDialog = new Lang.Class({
_onTypeClicked: function() {
this._cancelButton.visible = false;
this._backButton.visible = true;
+ this._nextButton.visible = false;
this._headerBar.title = _("Select Type");
this._stack.visible_child_name = 'select-type';
},
@@ -354,6 +355,7 @@ const OSMEditDialog = new Lang.Class({
/* go back to the editing stack page */
this._backButton.visible = false;
this._cancelButton.visible = true;
+ this._nextButton.visible = true;
this._stack.visible_child_name = 'editor';
this._headerBar.title = this._originalTitle;
@@ -469,6 +471,7 @@ const OSMEditDialog = new Lang.Class({
_onBackClicked: function() {
this._backButton.visible = false;
this._cancelButton.visible = true;
+ this._nextButton.visible = true;
this._nextButton.label = _("Next");
this._stack.set_visible_child_name('editor');
this._isEditing = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]