From ff1e5cf77abe865c4ca9beda114577ad4a13e61f Mon Sep 17 00:00:00 2001 From: harlekin Date: Wed, 13 Oct 2004 20:57:30 +0000 Subject: add an config option for 10East to deactivate the script menu runtime --- (limited to 'noncore/apps') diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index a0622d4..291912c 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -29,6 +29,10 @@ using namespace Opie::Ui; /* STD */ #include +#ifdef EAST +#include +#endif + MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { #ifdef FSCKED_DISTRI @@ -203,8 +207,10 @@ void MainWindow::initUI() { m_saveScript = new QAction(tr("Save Script"), QString::null, 0, this, 0); m_saveScript->addTo(m_scripts); connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript())); - - + + + + /* * action that open/closes the keyboard */ @@ -222,7 +228,13 @@ void MainWindow::initUI() { m_bar->insertItem( tr("Connection"), m_console ); /* the scripts menu */ - m_bar->insertItem( tr("Scripts"), m_scripts ); + #ifdef EAST + OConfig cfg("opie-console"); + cfg.setGroup("10east"); + if( !cfg.readEntry("scripthide",0) ) { + m_bar->insertItem( tr("Scripts"), m_scripts ); + } + #endif /* and the keyboard */ m_keyBar = new QToolBar(this); -- cgit v0.9.0.2