private void Close()
        {
            windowSticky = false;

            if (window == null)
            {
                return;
            }

            window.close();
        }
        private void Close()
        {
            windowSticky = false;

            _isVisible = false;

            if (window != null)
            {
                window.close();
                window = null;
            }

            if (compactWindow != null)
            {
                compactWindow.Close();
                compactWindow = null;
            }
        }