Do not show resize handle in mini variant
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1497e54974
commit
e418bb17c6
4 changed files with 12 additions and 2 deletions
2
dpf
2
dpf
|
|
@ -1 +1 @@
|
||||||
Subproject commit 207e0ae8720faa4db6f34192d83a0ee3b85b832a
|
Subproject commit 0c75ecb5db751eda5d5d7168f5299274c050766c
|
||||||
|
|
@ -533,6 +533,15 @@ END_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
namespace rack {
|
namespace rack {
|
||||||
|
|
||||||
|
bool isMini()
|
||||||
|
{
|
||||||
|
#if CARDINAL_VARIANT_MINI
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool isStandalone()
|
bool isStandalone()
|
||||||
{
|
{
|
||||||
return std::strstr(getPluginFormatName(), "Standalone") != nullptr;
|
return std::strstr(getPluginFormatName(), "Standalone") != nullptr;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ namespace window {
|
||||||
void generateScreenshot();
|
void generateScreenshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isMini();
|
||||||
bool isStandalone();
|
bool isStandalone();
|
||||||
|
|
||||||
#ifdef ARCH_WIN
|
#ifdef ARCH_WIN
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ Scene::Scene() {
|
||||||
browser->hide();
|
browser->hide();
|
||||||
addChild(browser);
|
addChild(browser);
|
||||||
|
|
||||||
if (isStandalone())
|
if (isStandalone() || isMini())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
internal->resizeHandle = new ResizeHandle;
|
internal->resizeHandle = new ResizeHandle;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue