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
Plasma Workspace
Commits
ba611062
Commit
ba611062
authored
Oct 05, 2020
by
Alexander Lohnau
💬
Browse files
KRunner: Fix type on desktop with retain prior search enabled
parent
43e897a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
lookandfeel/contents/runcommand/RunCommand.qml
View file @
ba611062
...
...
@@ -29,6 +29,7 @@ ColumnLayout {
property
string
query
property
string
runner
property
bool
showHistory
:
false
property
string
priorSearch
LayoutMirroring.enabled
:
Qt
.
application
.
layoutDirection
===
Qt
.
RightToLeft
LayoutMirroring.childrenInherit
:
true
...
...
@@ -44,21 +45,18 @@ ColumnLayout {
queryField
.
forceActiveFocus
();
listView
.
currentIndex
=
-
1
if
(
runnerWindow
.
retainPriorSearch
)
{
//
Hack: We want to retain the prior seach, but are in a different match session
// This way we ensure that the prior search gets executed as a new
query
const
priorSearch
=
root
.
query
queryField
.
text
=
""
queryField
.
text
=
priorSearch
//
If we manually specified a query(D-Bus invocation) we don't want to retain the prior search
if
(
!
query
)
{
queryField
.
text
=
priorSearch
queryField
.
select
(
root
.
query
.
length
,
0
)
}
}
queryField
.
select
(
root
.
query
.
length
,
0
)
}
else
{
root
.
runner
=
""
if
(
runnerWindow
.
retainPriorSearch
)
{
// Same effect as setting empty string, but we want to retain this string for the next session
results
.
model
.
clear
()
}
else
{
root
.
query
=
""
priorSearch
=
root
.
query
}
root
.
runner
=
""
root
.
query
=
""
root
.
showHistory
=
false
}
}
...
...
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