Browse Source

Testing

tags/1.9.6
falkTX 10 years ago
parent
commit
8c2ad1256b
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      source/bridges-ui/CarlaBridgeToolkitGtk.cpp

+ 18
- 0
source/bridges-ui/CarlaBridgeToolkitGtk.cpp View File

@@ -30,6 +30,8 @@ CARLA_BRIDGE_START_NAMESPACE
static int gargc = 0;
static char** gargv = nullptr;

static const bool gHideShowTesting = std::getenv("CARLA_UI_TESTING") != nullptr;

// -------------------------------------------------------------------------

class CarlaBridgeToolkitGtk : public CarlaBridgeToolkit
@@ -199,6 +201,22 @@ protected:

ui->idleUI();

if (gHideShowTesting)
{
static int counter = 0;
++counter;

if (counter == 100)
{
hide();
}
else if (counter == 200)
{
show();
counter = 0;
}
}

return true;
}



Loading…
Cancel
Save