internal void HideWidget() { if (floatingWindow != null) { floatingWindow.Hide(); } else if (dockBarItem != null) { dockBarItem.Hide(); } else if (widget != null) { widget.Hide(); } }