History

only display the OAuthWebViewHandler when we need to ask user for authorization

Stephen Birarda committed 12 years ago

Commit 82bf6001 parent 62f85d04 files · +25 −4Browse files

Showing the changes to interface/src/Menu.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Menu.cpp+6−3
@@ -103,6 +103,7 @@ Menu::Menu() : · 102 unmodified lines
103 _fastFPSAverage(ONE_SECOND_OF_FRAMES),103 _fastFPSAverage(ONE_SECOND_OF_FRAMES),
104 _loginAction(NULL),104 _loginAction(NULL),
105 _preferencesDialog(NULL),105 _preferencesDialog(NULL),
106 _loginDialog(NULL),
106 _snapshotsLocation()107 _snapshotsLocation()
107{108{
108 Application *appInstance = Application::getInstance();109 Application *appInstance = Application::getInstance();
@@ -913,9 +914,11 @@ void sendFakeEnterEvent() { · 804 unmodified lines
913const float DIALOG_RATIO_OF_WINDOW = 0.30f;914const float DIALOG_RATIO_OF_WINDOW = 0.30f;
914 915
915void Menu::loginForCurrentDomain() {916void Menu::loginForCurrentDomain() {
916 LoginDialog* loginDialog = new LoginDialog(Application::getInstance()->getWindow());917 if (!_loginDialog) {
917 loginDialog->show();918 _loginDialog = new LoginDialog(Application::getInstance()->getWindow());
918 loginDialog->resizeAndPosition(false);919 _loginDialog->show();
920 _loginDialog->resizeAndPosition(false);
921 }
919}922}
920 923
921void Menu::editPreferences() {924void Menu::editPreferences() {