Commit 761b9242 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Main/MainWindowMenuBar): display correctly settings window

parent 4ce2c6f9
import QtQuick 2.7
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import QtQuick.Window 2.2
import Linphone 1.0
......@@ -110,7 +111,14 @@ import App.Styles 1.0
shortcut: 'Ctrl+P'
text: qsTr('settings')
onTriggered: App.getSettingsWindow().show()
onTriggered: {
var window = App.getSettingsWindow()
if (window.visibility === Window.Minimized) {
window.visibility = Window.AutomaticVisibility
} else {
window.setVisible(true)
}
}
}
MenuSeparator {}
......
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