This commit is contained in:
Joseph Charamut
2020-05-08 09:03:31 -04:00
15 changed files with 1166 additions and 65 deletions

View File

@@ -325,6 +325,14 @@ void ConfigHandler::setCloseAfterScreenshot(const bool close) {
m_settings.setValue(QStringLiteral("closeAfterScreenshot"), close);
}
bool ConfigHandler::copyAndCloseAfterUploadEnabled() {
return m_settings.value(QStringLiteral("copyAndCloseAfterUpload")).toBool();
}
void ConfigHandler::setCopyAndCloseAfterUploadEnabled(const bool value) {
m_settings.setValue(QStringLiteral("copyAndCloseAfterUpload"), value);
}
bool ConfigHandler::saveAfterCopyValue() {
return m_settings.value(QStringLiteral("saveAfterCopy")).toBool();
}

View File

@@ -71,6 +71,9 @@ public:
bool closeAfterScreenshotValue();
void setCloseAfterScreenshot(const bool);
bool copyAndCloseAfterUploadEnabled();
void setCopyAndCloseAfterUploadEnabled(const bool);
bool saveAfterCopyValue();
void setSaveAfterCopy(const bool);

View File

@@ -15,10 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#define pragma once
#include <QVector>
#include "src/widgets/capture/capturebutton.h"
#pragma once
namespace GlobalValues {