Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
c78f45de
Commit
c78f45de
authored
Aug 23, 2020
by
Martin Tobias Holmedahl Sandsmark
Committed by
Kurt Hindenburg
Sep 05, 2020
Browse files
shave ~10% of the startup time
parent
31969ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Application.cpp
View file @
c78f45de
...
...
@@ -27,6 +27,7 @@
#include <QDir>
#include <QCommandLineParser>
#include <QStandardPaths>
#include <QTimer>
// KDE
#include <KActionCollection>
...
...
@@ -258,7 +259,7 @@ int Application::newInstance()
// If not restoring size from last time or only adding new tab,
// resize window to chosen profile size (see Bug:345403)
if
(
createdNewMainWindow
)
{
window
->
show
(
);
QTimer
::
singleShot
(
0
,
window
,
&
MainWindow
::
show
);
}
else
{
window
->
setWindowState
(
window
->
windowState
()
&
(
~
Qt
::
WindowMinimized
|
Qt
::
WindowActive
));
window
->
show
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment