mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 02:19:23 +00:00
fix(ui/views/App/Main/MainWindow): handle correcty window visibility
This commit is contained in:
parent
93371b8718
commit
4ce2c6f99b
4 changed files with 10 additions and 4 deletions
|
|
@ -30,7 +30,7 @@
|
|||
class Logger {
|
||||
public:
|
||||
static void init ();
|
||||
static Logger * instance () { return m_instance; };
|
||||
static Logger *instance () { return m_instance; };
|
||||
|
||||
bool isVerbose () const { return m_verbose; };
|
||||
void setVerbose (bool verbose) { m_verbose = verbose; };
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Notification {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
property string _fileUri: notificationData ? notificationData.fileUri : ''
|
||||
property string _fileUri: notificationData && notificationData.fileUri || ''
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Notification {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
property string _sipAddress: notificationData ? notificationData.sipAddress : ''
|
||||
property string _sipAddress: notificationData && notificationData.sipAddress || ''
|
||||
property var _contact: _contactObserver.contact
|
||||
property var _contactObserver: SipAddressesModel.getContactObserver(_sipAddress)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtQuick.Window 2.2
|
||||
|
||||
// Explicit import to support Toolbar.
|
||||
import QtQuick.Controls 1.4 as Controls1
|
||||
|
|
@ -65,7 +66,12 @@ Controls1.ApplicationWindow {
|
|||
}
|
||||
|
||||
function _setView (view, props) {
|
||||
window.show()
|
||||
if (window.visibility === Window.Minimized) {
|
||||
window.visibility = Window.AutomaticVisibility
|
||||
} else {
|
||||
window.setVisible(true)
|
||||
}
|
||||
|
||||
window.requestActivate()
|
||||
collapse.setCollapsed(true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue