Commit de8ca630 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Common/Popup/DesktopPopup.qml): `requestActivate` is now an optional parameter

parent b9c1e7da
......@@ -12,7 +12,7 @@ Item {
property alias popupX: popup.x
property alias popupY: popup.y
property bool requestActivate: false
property int flags: Qt.SplashScreen
readonly property alias popupWidth: popup.width
......@@ -79,9 +79,12 @@ Item {
ScriptAction {
script: {
popup.showNormal()
if (wrapper.requestActivate) {
popup.requestActivate()
}
}
}
NumberAnimation {
duration: PopupStyle.animation.openingDuration
......
......@@ -97,6 +97,7 @@ Item {
popupX: coords.x
popupY: coords.y
requestActivate: true
onVisibleChanged: !visible && searchBox.hideMenu()
......
......@@ -62,7 +62,7 @@ ApplicationWindow {
}
function _setView (view, props) {
window.showNormal()
//window.show()
window.requestActivate()
collapse.setCollapsed(true)
......
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