fix: bug when saving after canceling the save action (#2568)

Co-authored-by: vkamn <vk@amnezia.org>
This commit is contained in:
yp
2026-05-15 09:57:44 +03:00
committed by GitHub
parent d0a1af0381
commit cb48667b91
10 changed files with 60 additions and 23 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
#ifndef SYSTEMCONTROLLER_H
#define SYSTEMCONTROLLER_H
#include <QByteArray>
#include <QObject>
class SystemController : public QObject
@@ -9,7 +10,8 @@ class SystemController : public QObject
public:
explicit SystemController(QObject *parent = nullptr);
static void saveFile(const QString &fileName, const QString &data);
static bool saveFile(const QString &fileName, const QString &data);
static bool saveFile(const QString &fileName, const QByteArray &data);
static bool readFile(const QString &fileName, QByteArray &data);
static bool readFile(const QString &fileName, QString &data);