mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
Finish renaming functions
This commit is contained in:
parent
72978c5d96
commit
30c5f277a0
1 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ var toolWidth = 50;
|
|||
var TOOLBAR_MARGIN_Y = 0;
|
||||
|
||||
|
||||
function showExamples(marketplaceID) {
|
||||
function showMarketplace(marketplaceID) {
|
||||
var url = MARKETPLACE_URL;
|
||||
if (marketplaceID) {
|
||||
url = url + "/items/" + marketplaceID;
|
||||
|
@ -36,16 +36,16 @@ function showExamples(marketplaceID) {
|
|||
UserActivityLogger.openedMarketplace();
|
||||
}
|
||||
|
||||
function hideExamples() {
|
||||
function hideMarketplace() {
|
||||
marketplaceWindow.setVisible(false);
|
||||
marketplaceWindow.setURL("about:blank");
|
||||
}
|
||||
|
||||
function toggleExamples() {
|
||||
function toggleMarketplace() {
|
||||
if (marketplaceWindow.visible) {
|
||||
hideExamples();
|
||||
hideMarketplace();
|
||||
} else {
|
||||
showExamples();
|
||||
showMarketplace();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ function onExamplesWindowVisibilityChanged() {
|
|||
browseExamplesButton.writeProperty('hoverState', marketplaceWindow.visible ? 2 : 3);
|
||||
}
|
||||
function onClick() {
|
||||
toggleExamples();
|
||||
toggleMarketplace();
|
||||
}
|
||||
browseExamplesButton.clicked.connect(onClick);
|
||||
marketplaceWindow.visibleChanged.connect(onExamplesWindowVisibilityChanged);
|
||||
|
|
Loading…
Reference in a new issue