Skip to content

Commit

Permalink
Wizard: Minimize the Window instead of hiding it
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jun 25, 2020
1 parent 363f0e9 commit 56ed676
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/wizard/owncloudoauthcredspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ void OwncloudOAuthCredsPage::initializePage()
_asyncAuth.reset(new OAuth(ocWizard->account().data(), this));
connect(_asyncAuth.data(), &OAuth::result, this, &OwncloudOAuthCredsPage::asyncAuthResult, Qt::QueuedConnection);
_asyncAuth->startAuthentication();
wizard()->hide();
wizard()->showMinimized();
}

void OCC::OwncloudOAuthCredsPage::cleanupPage()
{
// The next or back button was activated, show the wizard again
wizard()->show();
wizard()->showNormal();
_asyncAuth.reset();
}

Expand All @@ -96,7 +96,7 @@ void OwncloudOAuthCredsPage::asyncAuthResult(OAuth::Result r, const QString &use
case OAuth::Error:
/* Error while getting the access token. (Timeout, or the server did not accept our client credentials */
_ui.errorLabel->show();
wizard()->show();
wizard()->showNormal();
break;
case OAuth::LoggedIn: {
_token = token;
Expand All @@ -117,7 +117,7 @@ int OwncloudOAuthCredsPage::nextId() const

void OwncloudOAuthCredsPage::setConnected()
{
wizard()->show();
wizard()->showNormal();
}

AbstractCredentials *OwncloudOAuthCredsPage::getCredentials() const
Expand Down

0 comments on commit 56ed676

Please sign in to comment.