Skip to content

Commit

Permalink
vkconfig: Removing layers override when closing OS session
Browse files Browse the repository at this point in the history
Change-Id: Ieec8ff6f56ca8a998c37ef481c1707641a402b30
  • Loading branch information
christophe-lunarg committed Oct 3, 2024
1 parent f47ac19 commit 4f6bdee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions vkconfig/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

### Improvements:
- Show message warnings when overriding implicit layer, either disabling or enabling
- Removing layers override when closing OS session

### Fixes:
- Fix flag settings dependencies
Expand Down
13 changes: 13 additions & 0 deletions vkconfig/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "../vkconfig_core/help.h"
#include "../vkconfig_core/doc.h"
#include "../vkconfig_core/date.h"
#include "../vkconfig_core/override.h"

#include <QProcess>
#include <QMessageBox>
Expand Down Expand Up @@ -93,6 +94,8 @@ MainWindow::MainWindow(QWidget *parent)

SetupLauncherTree();

connect(qApp, &QGuiApplication::commitDataRequest, this, &MainWindow::commitDataRequest);

connect(ui->action_find_more_layers, SIGNAL(triggered(bool)), this, SLOT(OnHelpFindLayers(bool)));
connect(ui->actionAbout, SIGNAL(triggered(bool)), this, SLOT(OnHelpAbout(bool)));
connect(ui->actionVulkan_Info, SIGNAL(triggered(bool)), this, SLOT(toolsVulkanInfo(bool)));
Expand Down Expand Up @@ -155,6 +158,16 @@ MainWindow::MainWindow(QWidget *parent)

MainWindow::~MainWindow() { ResetLaunchApplication(); }

void MainWindow::commitDataRequest(QSessionManager &manager) {
(void)manager;

Configurator &configurator = Configurator::Get();

const Environment &environment = configurator.environment;

SurrenderConfiguration(configurator.environment);
}

void MainWindow::InitTray() {
if (QSystemTrayIcon::isSystemTrayAvailable()) {
this->_tray_quit_action = new QAction("&Quit", this);
Expand Down
2 changes: 2 additions & 0 deletions vkconfig/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class MainWindow : public QMainWindow {
void iconActivated(QSystemTrayIcon::ActivationReason reason);

public Q_SLOTS:
void commitDataRequest(QSessionManager &manager);

void toolsVulkanInfo(bool checked);
void toolsVulkanInstallation(bool checked);
void toolsResetToDefault(bool checked);
Expand Down

0 comments on commit 4f6bdee

Please sign in to comment.