}
} else {
qDebug() << "No configured folders yet, starting setup wizard";
- OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)));
+ slotNewAccountWizard();
}
}
_contextMenu->addMenu(_recentActionsMenu);
_contextMenu->addSeparator();
}
+ if (accountList.isEmpty()) {
+ _contextMenu->addAction(_actionNewAccountWizard);
+ }
_contextMenu->addAction(_actionSettings);
if (!Theme::instance()->helpUrl().isEmpty()) {
_contextMenu->addAction(_actionHelp);
_actionStatus = new QAction(tr("Unknown status"), this);
_actionStatus->setEnabled( false );
_actionSettings = new QAction(tr("Settings..."), this);
+ _actionNewAccountWizard = new QAction(tr("New account..."), this);
_actionRecent = new QAction(tr("Details..."), this);
_actionRecent->setEnabled( true );
QObject::connect(_actionRecent, SIGNAL(triggered(bool)), SLOT(slotShowSyncProtocol()));
QObject::connect(_actionSettings, SIGNAL(triggered(bool)), SLOT(slotShowSettings()));
+ QObject::connect(_actionNewAccountWizard, SIGNAL(triggered(bool)), SLOT(slotNewAccountWizard()));
_actionHelp = new QAction(tr("Help"), this);
QObject::connect(_actionHelp, SIGNAL(triggered(bool)), SLOT(slotHelp()));
_actionQuit = new QAction(tr("Quit %1").arg(Theme::instance()->appNameGUI()), this);
setPauseOnAllFoldersHelper(true);
}
+void ownCloudGui::slotNewAccountWizard()
+{
+ OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)));
+}
+
void ownCloudGui::setPauseOnAllFoldersHelper(bool pause)
{
QList<AccountState*> accounts;
void slotLogout();
void slotUnpauseAllFolders();
void slotPauseAllFolders();
+ void slotNewAccountWizard();
private:
void setPauseOnAllFoldersHelper(bool pause);
QAction *_actionLogin;
QAction *_actionLogout;
+ QAction *_actionNewAccountWizard;
QAction *_actionSettings;
QAction *_actionStatus;
QAction *_actionEstimate;