mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 21:56:26 +02:00
Fix Desktop double windows
This commit is contained in:
parent
6d53512c6c
commit
8a5d80de31
2 changed files with 8 additions and 6 deletions
|
@ -6518,12 +6518,7 @@ void Application::showDialog(const QUrl& widgetUrl, const QUrl& tabletUrl, const
|
||||||
if (onTablet) {
|
if (onTablet) {
|
||||||
toggleTabletUI(true);
|
toggleTabletUI(true);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!onTablet) {
|
|
||||||
DependencyManager::get<OffscreenUi>()->show(widgetUrl, name);
|
|
||||||
}
|
|
||||||
if (tablet->getToolbarMode()) {
|
|
||||||
DependencyManager::get<OffscreenUi>()->show(widgetUrl, name);
|
DependencyManager::get<OffscreenUi>()->show(widgetUrl, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,13 @@ void setupPreferences() {
|
||||||
auto preference = new AvatarPreference(AVATAR_BASICS, "Appearance", getter, setter);
|
auto preference = new AvatarPreference(AVATAR_BASICS, "Appearance", getter, setter);
|
||||||
preferences->addPreference(preference);
|
preferences->addPreference(preference);
|
||||||
}
|
}
|
||||||
|
// UI
|
||||||
|
static const QString GRAPHICS_QUALITY { "Graphics Quality" };
|
||||||
|
{
|
||||||
|
auto getter = []()->float { return DependencyManager::get<LODManager>()->getLODLevel(); };
|
||||||
|
auto setter = [](float value) { FaceTracker::setEyeDeflection(value); };
|
||||||
|
preferences->addPreference(new SliderPreference(GRAPHICS_QUALITY, "World Detail", getter, setter));
|
||||||
|
}
|
||||||
|
|
||||||
// UI
|
// UI
|
||||||
static const QString UI_CATEGORY { "User Interface" };
|
static const QString UI_CATEGORY { "User Interface" };
|
||||||
|
|
Loading…
Reference in a new issue