Various QoL improvements

This commit is contained in:
Luca D'Amico
2024-08-20 23:56:43 +02:00
parent e2e53cbed7
commit f46e5275d3
9 changed files with 89 additions and 43 deletions

View File

@@ -1,9 +1,8 @@
#pragma once
#include <QFileDialog>
QString customSaveFileDialog(const QString& title, const QString& defaultName, const QString& filter)
inline QString customSaveFileDialog(const QString& title, const QString& defaultName, const QString& filter)
{
static QString lastUsedPath;

View File

@@ -49,7 +49,7 @@ inline void setTheme(QString themeValue)
{
QSettings settings;
settings.setValue("theme", themeValue);
QMessageBox::information(nullptr, "NDS Factory", "Restart NDSFactory to change theme!");
QMessageBox::information(nullptr, "NDSFactory", "Restart NDSFactory to change theme!");
}

View File

@@ -6,10 +6,10 @@ void notifyExtractionResult(bool result)
{
if (result)
{
QMessageBox::information(Q_NULLPTR, "NDS Factory", "Extraction completed!");
QMessageBox::information(Q_NULLPTR, "NDSFactory", "Extraction completed!");
}
else
{
QMessageBox::critical(Q_NULLPTR, "NDS Factory", "Error during the extraction!");
QMessageBox::critical(Q_NULLPTR, "NDSFactory", "Error during the extraction!");
}
}