mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
starting up webgui even if now window with guitag available
This commit is contained in:
@@ -91,11 +91,13 @@ void CefWebGuiModule::startOrStopGui() {
|
||||
|
||||
WebBrowserModule* webBrowserModule = global::moduleEngine.module<WebBrowserModule>();
|
||||
|
||||
const bool isGuiWindow = global::windowDelegate.hasGuiWindow();
|
||||
//TODO: micah - revisit this, either remove code or find situation
|
||||
//where you haave a master without a gui and fixfor it.
|
||||
//const bool hasGuiWindow = global::windowDelegate.hasGuiWindow();
|
||||
|
||||
const bool isMaster = global::windowDelegate.isMaster();
|
||||
|
||||
if (_enabled && isGuiWindow && isMaster) {
|
||||
if (_enabled && isMaster) {
|
||||
LDEBUGC("WebBrowser", fmt::format("Loading GUI from {}", _url));
|
||||
|
||||
if (!_instance) {
|
||||
|
||||
@@ -138,10 +138,13 @@ void WebBrowserModule::internalInitialize(const ghoul::Dictionary& dictionary) {
|
||||
_enabled = dictionary.value<bool>("Enabled");
|
||||
}
|
||||
|
||||
const bool isGuiWindow = global::windowDelegate.hasGuiWindow();
|
||||
//TODO: micah - revisit this, either remove code or find situation
|
||||
//where you haave a master without a gui and fixfor it.
|
||||
//const bool haGuiWindow = global::windowDelegate.hasGuiWindow();
|
||||
|
||||
const bool isMaster = global::windowDelegate.isMaster();
|
||||
|
||||
if (!_enabled || !isGuiWindow || !isMaster) {
|
||||
if (!_enabled || (!isMaster) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user