UI: Warn when closing dock widgets for first time

Users don't realize that dockable windows can be closed (hidden) and can
be shown again via the View menu.  This adds an explicit warning when
the user first closes a dockable window for their first time.  In future
versions, this should be changed to a dialog box with a "Do not show
again" checkbox.
This commit is contained in:
jp9000
2019-03-05 14:37:01 -08:00
parent 106222154a
commit 4450843aa0
8 changed files with 66 additions and 13 deletions

View File

@@ -9,6 +9,7 @@
#include "window-basic-main.hpp"
#include "remote-text.hpp"
#include "window-dock.hpp"
#include <json11.hpp>
@@ -165,9 +166,9 @@ bool TwitchAuth::LoadInternal()
return OAuthStreamKey::LoadInternal();
}
class TwitchWidget : public QDockWidget {
class TwitchWidget : public OBSDock {
public:
inline TwitchWidget() : QDockWidget() {}
inline TwitchWidget() : OBSDock() {}
QScopedPointer<QCefWidget> widget;