Verified Commit 94181d23 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Simplify NavigationEntrySheet

parent 84d30c2d
......@@ -44,9 +44,6 @@ Controls.Drawer {
property int fullHeight: 0.9 * rootPage.height
property bool openedState: false
property Item urlInput
property Item listView
contentHeight: fullHeight - topPadding - bottomPadding
contentWidth: parent.width - rightPadding - leftPadding
contentItem: Item {
......@@ -85,7 +82,6 @@ Controls.Drawer {
onAccepted: applyUrl()
onTextChanged: urlFilter.setFilterFixedString(text)
Keys.onEscapePressed: if (overlay.sheetOpen) overlay.close()
Component.onCompleted: overlay.urlInput = urlInput
function applyUrl() {
if (text.match(RegexWebUrl.re_weburl)) {
......@@ -133,8 +129,6 @@ Controls.Drawer {
id: urlFilter
sourceModel: BrowserManager.history
}
Component.onCompleted: overlay.listView = listView
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment