summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2004-10-13 20:57:30 (UTC)
committer harlekin <harlekin>2004-10-13 20:57:30 (UTC)
commitff1e5cf77abe865c4ca9beda114577ad4a13e61f (patch) (side-by-side diff)
treeab16c5f4b826c744e4e921c3df30930bc452428e /noncore
parent2e51b60e861912fa525597f6b9de6b83c9cedf94 (diff)
downloadopie-ff1e5cf77abe865c4ca9beda114577ad4a13e61f.zip
opie-ff1e5cf77abe865c4ca9beda114577ad4a13e61f.tar.gz
opie-ff1e5cf77abe865c4ca9beda114577ad4a13e61f.tar.bz2
add an config option for 10East to deactivate the script menu runtime
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp18
1 files changed, 15 insertions, 3 deletions
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
@@ -30,4 +30,8 @@ using namespace Opie::Ui;
#include <assert.h>
+#ifdef EAST
+#include <opie2/oconfig.h>
+#endif
+
MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) {
@@ -204,6 +208,8 @@ void MainWindow::initUI() {
m_saveScript->addTo(m_scripts);
connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript()));
-
-
+
+
+
+
/*
* action that open/closes the keyboard
@@ -223,5 +229,11 @@ void MainWindow::initUI() {
/* 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 */