From f6913624b21e06ed56d08bdb27cf10536ce7a515 Mon Sep 17 00:00:00 2001 From: "Cameron (Kamran) Mashayekhi" Date: Thu, 25 May 2006 16:20:47 +0000 Subject: [PATCH] fixed up the initial state yast config buttons. --- casa-yast/src/complex.ycp | 9 +++++++-- casa-yast/yast2-CASA.changes | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/casa-yast/src/complex.ycp b/casa-yast/src/complex.ycp index c7afb799..7d6f9466 100644 --- a/casa-yast/src/complex.ycp +++ b/casa-yast/src/complex.ycp @@ -112,20 +112,25 @@ any SummaryDialog() `VSpacing(), `VSpacing() )); + Wizard::SetContentsButtons(caption, contents, HELPS["summary"]:"", 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"); if(iConfig_CASAReturn == 0) { - UI::ChangeWidget(`id(`install_casa_button), `Enabled, false); + UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, true); } else { - UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false); + UI::ChangeWidget(`id(`install_casa_button), `Enabled, true); } any ret = nil; diff --git a/casa-yast/yast2-CASA.changes b/casa-yast/yast2-CASA.changes index ce767acc..ec69e440 100644 --- a/casa-yast/yast2-CASA.changes +++ b/casa-yast/yast2-CASA.changes @@ -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