Show a notification instead of a login window on startup #3350
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 1 Sep 2015 13:37:58 +0000 (15:37 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 1 Sep 2015 16:40:20 +0000 (18:40 +0200)
commitdcb687929f1323e9fea8a9e4bd48cdd3fa8312d9
treecc1e8ba9fcd074ee6056960cae07be8e68cad264
parent628957de21d5e03e29182d21b9fa8a0f85f164cb
Show a notification instead of a login window on startup #3350

The original problem is that showing a popup not originated
from the main settings window while it's focused won't be
shown in front to the user.

This try not to highjack the user's attention of the user
by showing a notification when checking the connection for
valid credentials, and require the user to sign in through
the UI. There are still issues with showing that popup from
the tray icon, but the user will most likely be looking for
the popup in that case. The new sign in button directly in
the settings account works properly.
14 files changed:
src/gui/accountstate.cpp
src/gui/accountstate.h
src/gui/application.cpp
src/gui/creds/shibbolethcredentials.cpp
src/gui/creds/shibbolethcredentials.h
src/libsync/connectionvalidator.cpp
src/libsync/connectionvalidator.h
src/libsync/creds/abstractcredentials.h
src/libsync/creds/dummycredentials.cpp
src/libsync/creds/dummycredentials.h
src/libsync/creds/httpcredentials.cpp
src/libsync/creds/httpcredentials.h
src/libsync/creds/tokencredentials.cpp
src/libsync/creds/tokencredentials.h