diff --git a/components/LanguageSidebar.qml b/components/LanguageSidebar.qml index b6f732dd..e7de02ef 100644 --- a/components/LanguageSidebar.qml +++ b/components/LanguageSidebar.qml @@ -37,17 +37,6 @@ import QtQuick.Controls 2.0 Drawer { id: sideBar - // @TODO: Qt 5.10 introduces `opened` built-in for Drawer - property bool isOpened: false - - onClosed: { - isOpened = false; - } - - onOpened: { - isOpened = true; - } - width: 240 height: parent.height - (persistentSettings.customDecorations ? 50 : 0) y: titleBar.height diff --git a/main.qml b/main.qml index 90521eca..e86ea212 100644 --- a/main.qml +++ b/main.qml @@ -1948,7 +1948,7 @@ ApplicationWindow { } function toggleLanguageView(){ - languageSidebar.isOpened ? languageSidebar.close() : languageSidebar.open(); + languageSidebar.visible ? languageSidebar.close() : languageSidebar.open(); resetLanguageFields() }