mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix: bug when saving after canceling the save action (#2568)
Co-authored-by: vkamn <vk@amnezia.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user