Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54864 - in /trunk/autoinstallation: package/autoyast2.changes src/include/conftree.ycp
  • From: ug@xxxxxxxxxxxxxxxx
  • Date: Wed, 21 Jan 2009 15:54:00 -0000
  • Message-id: <E1LPfOy-0005mP-Em@xxxxxxxxxxxxxxxx>
Author: ug
Date: Wed Jan 21 16:54:00 2009
New Revision: 54864

URL: http://svn.opensuse.org/viewcvs/yast?rev=54864&view=rev
Log:
dont show useless menu entries (bnc#457575)

Modified:
trunk/autoinstallation/package/autoyast2.changes
trunk/autoinstallation/src/include/conftree.ycp

Modified: trunk/autoinstallation/package/autoyast2.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=54864&r1=54863&r2=54864&view=diff
==============================================================================
--- trunk/autoinstallation/package/autoyast2.changes (original)
+++ trunk/autoinstallation/package/autoyast2.changes Wed Jan 21 16:54:00 2009
@@ -1,4 +1,12 @@
-------------------------------------------------------------------
+Wed Jan 21 16:52:27 CET 2009 - ug@xxxxxxx
+
+- hide "Show Source" menu point when source is shown already
+ (bnc#457575)
+- hide "Show config tree" menu point when tree is shown already
+ (bnc#457575)
+
+-------------------------------------------------------------------
Mon Jan 12 12:46:22 CET 2009 - ug@xxxxxxx

- nfs mountpoints can end up in the partitioning section

Modified: trunk/autoinstallation/src/include/conftree.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/include/conftree.ycp?rev=54864&r1=54863&r2=54864&view=diff
==============================================================================
--- trunk/autoinstallation/src/include/conftree.ycp (original)
+++ trunk/autoinstallation/src/include/conftree.ycp Wed Jan 21 16:54:00 2009
@@ -25,6 +25,7 @@
import "AutoinstClone";

string title = _("Autoinstallation - Configuration");
+ boolean show_source = false;

any SaveAs() {
any filename = UI::AskForSaveFileName(AutoinstConfig::Repository,
"*", _("Save as..."));
@@ -355,10 +356,12 @@
"write_to_system");
Menu = Wizard::AddMenuEntry ( Menu , "file-menu", _("E&xit"),
"menu_exit" );
- Menu = Wizard::AddMenuEntry ( Menu , "view-menu",
_("Configu&ration Tree"),
- "menu_tree" );
- Menu = Wizard::AddMenuEntry ( Menu , "view-menu", _("So&urce"),
- "menu_source" );
+ if( show_source == true )
+ Menu = Wizard::AddMenuEntry ( Menu , "view-menu",
_("Configu&ration Tree"),
+ "menu_tree" );
+ else
+ Menu = Wizard::AddMenuEntry ( Menu , "view-menu",
_("So&urce"),
+ "menu_source" );
Menu = Wizard::AddMenuEntry ( Menu , "class-menu", _("Cla&sses"),
"menu_classes" );
Menu = Wizard::AddMenuEntry ( Menu , "class-menu", _("Me&rge
Classes"),
@@ -502,6 +505,9 @@
else if (ret == "menu_tree") // source -> tree
{
y2debug("change to tree");
+ show_source = false;
+ Wizard::DeleteMenus(); // FIXME: sucks sucks sucks sucks sucks
+ menus();
CreateDialog(currentGroup, currentModule);
}
else if (ret == "menu_open") // OPEN
@@ -581,6 +587,9 @@
/* save previously selected group and module,
* so we can restore them afterwards
*/
+ show_source = true;
+ Wizard::DeleteMenus(); // FIXME: sucks sucks sucks sucks sucks
+ menus();
currentGroup = getGroup();
currentModule = getModule();
ShowSource();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages