Smuxi.Frontend.Gnome.MainWindow.OnFocusOutEvent C# (CSharp) Method

OnFocusOutEvent() protected method

protected OnFocusOutEvent ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected virtual void OnFocusOutEvent(object sender, EventArgs e)
        {
            Trace.Call(sender, e);

            try {
                if (Notebook.IsBrowseModeEnabled) {
                    return;
                }

                var chatView = ChatViewManager.CurrentChatView;
                if (chatView == null) {
                    return;
                }

                chatView.UpdateLastSeenMessage();
            } catch (Exception ex) {
                Frontend.ShowException(this, ex);
            }
        }