mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Actually set search string + fix code style warnings.
It now works! Sort of. Turns out you have to manually click 'Load More' each time now :-) This is also at least partially explains the 'cases' mentioned in previous commit (when switching tabs). part of CURA-8559
This commit is contained in:
parent
d7ac307ace
commit
79f7724923
3 changed files with 4 additions and 4 deletions
|
@ -110,7 +110,7 @@ class RemotePackageList(PackageList):
|
||||||
if self._package_type_filter != "":
|
if self._package_type_filter != "":
|
||||||
request_url += f"&package_type={self._package_type_filter}"
|
request_url += f"&package_type={self._package_type_filter}"
|
||||||
if self._search_string != "":
|
if self._search_string != "":
|
||||||
request_url += f"" # TODO
|
request_url += f"&search={self._search_string}"
|
||||||
return request_url
|
return request_url
|
||||||
|
|
||||||
def _parseResponse(self, reply: "QNetworkReply") -> None:
|
def _parseResponse(self, reply: "QNetworkReply") -> None:
|
||||||
|
|
|
@ -18,7 +18,7 @@ Button
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: backgroundColor
|
color: backgroundColor
|
||||||
border.color: transparent
|
border.color: "transparent"
|
||||||
radius: Math.round(width * 0.5)
|
radius: Math.round(width * 0.5)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,9 +170,9 @@ Window
|
||||||
function onLoaded()
|
function onLoaded()
|
||||||
{
|
{
|
||||||
pageTitle.text = content.item.pageTitle
|
pageTitle.text = content.item.pageTitle
|
||||||
searchStringChanged.connect(onSearchStringChanged)
|
searchStringChanged.connect(handleSearchStringChanged)
|
||||||
}
|
}
|
||||||
function onSearchStringChanged(new_search)
|
function handleSearchStringChanged(new_search)
|
||||||
{
|
{
|
||||||
content.item.model.searchString = new_search
|
content.item.model.searchString = new_search
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue