From 988a55785b3f7afa934eb7d5c7c4debd2fba8d0a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 28 Dec 2024 14:24:43 +0900 Subject: Add dockOnStart option to control window show status on startup. Knowit could already be docked, but on startup the window would annoyingly show up minimized in the taskbar instead of being fully docked. The new option allows to choose the window status when starting up in docked mode: either the window shows in normal state or is fully docked. Signed-off-by: Michele Calgaro --- src/knowit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/knowit.cpp') diff --git a/src/knowit.cpp b/src/knowit.cpp index 57665ce..a973872 100644 --- a/src/knowit.cpp +++ b/src/knowit.cpp @@ -281,8 +281,8 @@ Knowit::Knowit(TQWidget*, const char *name) : TDEMainWindow(0, name), config = kapp->config(); readOptions(); - if (runMinimized) - showMinimized(); + if (Options.docked && Options.dockOnStart) + hide(); else show(); @@ -518,7 +518,6 @@ void Knowit::readOptions() Layout->setSizes(sizes); Options.read(config); config->setGroup("General"); - runMinimized = config->readBoolEntry("Minimized", false); TQString oldfile = config->readEntry("LastFile"); TQSize defSize = size(); resize(config->readSizeEntry("Geometry", &defSize)); -- cgit v1.2.3