diff options
author | Michele Calgaro <[email protected]> | 2024-12-28 14:24:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-28 14:32:04 +0900 |
commit | 988a55785b3f7afa934eb7d5c7c4debd2fba8d0a (patch) | |
tree | b46c523fba5aabefde641cd3920142501289a515 /src/knowit.cpp | |
parent | 029a0e14328ba5f146cea9c1e91e5994071f3b95 (diff) | |
download | knowit-988a55785b3f7afa934eb7d5c7c4debd2fba8d0a.tar.gz knowit-988a55785b3f7afa934eb7d5c7c4debd2fba8d0a.zip |
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 <[email protected]>
Diffstat (limited to 'src/knowit.cpp')
-rw-r--r-- | src/knowit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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)); |