forked from Public/monero-gui
disable right panel by default, don't perform Twitter https call if panel is disabled
This commit is contained in:
2
main.qml
2
main.qml
@@ -43,7 +43,7 @@ ApplicationWindow {
|
||||
property var currentItem
|
||||
property bool whatIsEnable: false
|
||||
property bool ctrlPressed: false
|
||||
property bool rightPanelExpanded: true
|
||||
property bool rightPanelExpanded: false
|
||||
property bool osx: false
|
||||
property alias persistentSettings : persistentSettings
|
||||
property var wallet;
|
||||
|
||||
@@ -60,6 +60,8 @@ Item {
|
||||
if (from == "" && phrase == "")
|
||||
return;
|
||||
|
||||
if (appWindow.rightPanelExpanded) {
|
||||
|
||||
//! [requesting]
|
||||
var req = new XMLHttpRequest;
|
||||
req.open("GET", "https://api.twitter.com/1.1/search/tweets.json?from=" + from +
|
||||
@@ -85,6 +87,7 @@ Item {
|
||||
req.send();
|
||||
//! [requesting]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted: {
|
||||
|
||||
Reference in New Issue
Block a user