@@ -1093,12 +1093,22 @@ void ModuleWidget::makeOptionsDialog()
10931093 dockable_->setFloating (!Core::Preferences::Instance ().modulesAreDockable );
10941094 dockable_->hide ();
10951095 connect (dockable_, SIGNAL (visibilityChanged (bool )), this , SLOT (colorOptionsButton (bool )));
1096+ connect (dockable_, SIGNAL (topLevelChanged (bool )), this , SLOT (updateDockWidgetProperties (bool )));
10961097
10971098 dialog_->pull ();
10981099 }
10991100 }
11001101}
11011102
1103+ void ModuleWidget::updateDockWidgetProperties (bool isFloating)
1104+ {
1105+ if (isFloating)
1106+ {
1107+ dockable_->setWindowFlags (Qt::Window);
1108+ dockable_->show ();
1109+ }
1110+ }
1111+
11021112void ModuleWidget::updateDialogWithPortCount (const std::string& portName)
11031113{
11041114 if (dialog_)
@@ -1186,15 +1196,18 @@ void ModuleWidget::launchDocumentation()
11861196 QUrl qurl (QString::fromStdString (url), QUrl::TolerantMode);
11871197
11881198 if (!QDesktopServices::openUrl (qurl))
1189- GuiLogger::Instance ().log (" Failed to open help page: " + qurl.toString ());
1199+ GuiLogger::Instance ().logError (" Failed to open help page: " + qurl.toString ());
11901200}
11911201
11921202void ModuleWidget::setStartupNote (const QString& text)
11931203{
1194- auto note = getCurrentNote ();
1195- note.plainText_ = text;
1196- note.html_ = " <p style=\" color:white\" >" + text;
1197- updateNoteFromFile (note);
1204+ if (isViewScene_ || Core::Preferences::Instance ().autoNotes )
1205+ {
1206+ auto note = getCurrentNote ();
1207+ note.plainText_ = text;
1208+ note.html_ = " <p style=\" color:white\" >" + text;
1209+ updateNoteFromFile (note);
1210+ }
11981211}
11991212
12001213void ModuleWidget::createStartupNote ()
0 commit comments