void CloudView::onAccountChanged()
{
    setupLogoAndBrand();
    const Account& account = seafApplet->accountManager()->currentAccount();
    if (account.isValid() && account.isPro()) {
        if (!account.serverInfo.customBrand.isEmpty()) {
            QString title = account.serverInfo.customBrand;
            mBrand->setText(title);
            mBrand->setToolTip(title);
            mLogo->setToolTip(title);
            if (seafApplet->mainWindow()) {
                seafApplet->mainWindow()->setWindowTitle(title);
            }
        }

        if (!account.serverInfo.customLogo.isEmpty()) {
            mLogo->setPixmap(
                CustomizationService::instance()->getServerLogo(account));
        }
    }

    refresh_action_->setEnabled(account.isValid());

    showProperTabs();

    repos_tab_->refresh();
    starred_files_tab_->refresh();
    activities_tab_->refresh();
    search_tab_->reset();

    account_view_->onAccountChanged();
    // we need update tab manually
    onTabChanged(tabs_->currentIndex());
}
Exemple #2
0
// static
void LLFloaterDirectory::onTabChangedFindAll(void* data, bool from_click)
{
	LLFloaterDirectory* self = (LLFloaterDirectory*)data;
	if (!self) return;

	self->hideAllDetailPanels();
	LLPanelDirFindAllInterface::focus(self->mFindAllPanel);
	onTabChanged(data, from_click);
}
MainWindow::MainWindow(QWidget* parent) : QWidget(parent)
{
  setupUi(this);

  connect(bSave, SIGNAL(clicked()), this, SLOT(generateAll()));

  loadConfiguration ( gen_driver_container () );
  loadExistConfiguration ( existingProjectFolders() );
  
  fillUi();
  
  connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabChanged(int)));
  onTabChanged(0);
}