fixed up the initial state yast config buttons.

This commit is contained in:
Cameron (Kamran) Mashayekhi 2006-05-25 16:20:47 +00:00
parent ce184f02f5
commit f6913624b2
2 changed files with 13 additions and 2 deletions

View File

@ -112,20 +112,25 @@ any SummaryDialog()
`VSpacing(), `VSpacing(),
`VSpacing() `VSpacing()
)); ));
Wizard::SetContentsButtons(caption, contents, HELPS["summary"]:"", Wizard::SetContentsButtons(caption, contents, HELPS["summary"]:"",
Label::BackButton(), Label::FinishButton()); Label::BackButton(), Label::FinishButton());
UI::ChangeWidget(`id(`install_casa_button), `Enabled, false);
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false);
integer iConfig_CASAReturn = (integer)SCR::Execute(.target.bash, "/usr/sbin/iscasaconfiged"); integer iConfig_CASAReturn = (integer)SCR::Execute(.target.bash, "/usr/sbin/iscasaconfiged");
if(iConfig_CASAReturn == 0) if(iConfig_CASAReturn == 0)
{ {
UI::ChangeWidget(`id(`install_casa_button), `Enabled, false); UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, true);
} }
else else
{ {
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false); UI::ChangeWidget(`id(`install_casa_button), `Enabled, true);
} }
any ret = nil; any ret = nil;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 25 10:19:39 MDT 2006 - cmashayekhi@novell.com
- Buttons start in grayed out state before internal check
for insattation or not.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 22 14:10:16 MDT 2006 - cmashayekhi@novell.com Mon May 22 14:10:16 MDT 2006 - cmashayekhi@novell.com