Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
906d5e09
Commit
906d5e09
authored
Jan 17, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Jan 18, 2022
Browse files
Mark the window as invisible when calling with --feedback
This way it shouldn't glitch into the task manager
BUG: 423493
parent
14190aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
discover/main.cpp
View file @
906d5e09
...
...
@@ -140,6 +140,7 @@ int main(int argc, char **argv)
parser
->
process
(
app
);
about
.
processCommandLine
(
parser
.
data
());
DiscoverBackendsFactory
::
processCommandLine
(
parser
.
data
(),
parser
->
isSet
(
QStringLiteral
(
"test"
)));
const
bool
feedback
=
parser
->
isSet
(
QStringLiteral
(
"feedback"
));
if
(
parser
->
isSet
(
QStringLiteral
(
"listbackends"
)))
{
QTextStream
(
stdout
)
<<
i18n
(
"Available backends:
\n
"
);
...
...
@@ -163,6 +164,9 @@ int main(int argc, char **argv)
QVariantMap
initialProperties
;
if
(
!
options
.
isEmpty
()
||
!
parser
->
positionalArguments
().
isEmpty
())
initialProperties
=
{{
QStringLiteral
(
"currentTopLevel"
),
QStringLiteral
(
"qrc:/qml/LoadingPage.qml"
)}};
if
(
feedback
)
{
initialProperties
.
insert
(
"visible"
,
false
);
}
mainWindow
=
new
DiscoverObject
(
s_decodeCompactMode
->
value
(
parser
->
value
(
QStringLiteral
(
"compact"
)),
DiscoverObject
::
Full
),
initialProperties
);
}
QObject
::
connect
(
&
app
,
&
QCoreApplication
::
aboutToQuit
,
mainWindow
,
&
DiscoverObject
::
deleteLater
);
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
ff1c8f41
·
Jan 18, 2022
mentioned in commit
ff1c8f41
mentioned in commit ff1c8f413fb49bcd993ebd412b5a078abd417d6e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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