[longomatch/newui: 45/50] Respect defined tagging mode for buttons visibility
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 45/50] Respect defined tagging mode for buttons visibility
- Date: Thu, 21 Aug 2014 11:28:47 +0000 (UTC)
commit 36e6269142a97c823c7a284ea9c38d899edf3b50
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Aug 21 13:00:10 2014 +0200
Respect defined tagging mode for buttons visibility
LongoMatch.GUI/Gui/Component/ButtonsWidget.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
index 50ead98..bdee58d 100644
--- a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
@@ -44,6 +44,7 @@ namespace LongoMatch.Gui.Component
PlaysTagger tagger;
Categories template;
TaggerButton selected;
+ bool internalButtons;
bool edited;
public ButtonsWidget()
@@ -104,13 +105,15 @@ namespace LongoMatch.Gui.Component
tagger.TagMode = value;
// Properties only visible in edit mode
rightbox.Visible = tagMode == TagMode.Edit;
+ // Add buttons for cards/tags/etc.. can be handled remotely.
+ hbuttonbox2.Visible = tagMode == TagMode.Edit && internalButtons;
}
}
public bool ButtonsVisible {
set {
- // Add buttons for cards/tags/etc.. can be handled remotely.
- hbuttonbox2.Visible = value;
+ internalButtons = value;
+ Mode = tagMode;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]