diff --git a/database/app_data.db b/database/app_data.db index 0e0359c..42852bc 100644 Binary files a/database/app_data.db and b/database/app_data.db differ diff --git a/views/MainWindow.cpp b/views/MainWindow.cpp index f51c391..996b8e3 100644 --- a/views/MainWindow.cpp +++ b/views/MainWindow.cpp @@ -25,8 +25,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { stackedWidget->setCurrentWidget(m_devicesWindow); // FIXME переделать на ленивое создание - m_accountsWindow = new AccountWindow(this); - stackedWidget->addWidget(m_accountsWindow); + // m_accountsWindow = new AccountWindow(this); + // stackedWidget->addWidget(m_accountsWindow); // stackedWidget->setCurrentWidget(accountPage); resize(800, 600); @@ -34,10 +34,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // Работа с меню QMenu *menu = menuBar()->addMenu("Меню"); auto *devicesPageAction = new QAction("Активные устройства", this); - auto *accountPageAction = new QAction("Аккаунты", this); + // auto *accountPageAction = new QAction("Аккаунты", this); auto *tutorialPageAction = new QAction("Инструкция", this); menu->addAction(devicesPageAction); - menu->addAction(accountPageAction); + // menu->addAction(accountPageAction); menu->addAction(tutorialPageAction); connect(devicesPageAction, &QAction::triggered, this, [=]() { @@ -47,10 +47,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { stackedWidget->setCurrentWidget(m_devicesWindow); }); - connect(accountPageAction, &QAction::triggered, this, [=]() { - stackedWidget->setCurrentWidget(m_accountsWindow); - deleteDevicePage(); // освобождаем ресурсы - }); + // connect(accountPageAction, &QAction::triggered, this, [=]() { + // stackedWidget->setCurrentWidget(m_accountsWindow); + // deleteDevicePage(); // освобождаем ресурсы + // }); connect(tutorialPageAction, &QAction::triggered, this, [=]() { if (!m_tutorialWindow) {