fixed up the initial state yast config buttons.
This commit is contained in:
parent
ce184f02f5
commit
f6913624b2
@ -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;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user