mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-07 17:44:01 +00:00
Fixed bug related to save path
This commit is contained in:
committed by
borgmanJeremy
parent
40bad756ad
commit
be730cf29c
@@ -57,10 +57,10 @@ void GeneneralConf::updateComponents()
|
||||
m_saveAfterCopy->setChecked(config.saveAfterCopyValue());
|
||||
m_useJpgForClipboard->setChecked(config.useJpgForClipboard());
|
||||
|
||||
if (!config.saveAfterCopyPathValue().isEmpty()) {
|
||||
m_savePath->setText(config.saveAfterCopyPathValue());
|
||||
if (!config.savePath().isEmpty()) {
|
||||
m_savePath->setText(config.savePath());
|
||||
} else {
|
||||
ConfigHandler().setSaveAfterCopyPath(
|
||||
ConfigHandler().setSavePath(
|
||||
QStandardPaths::writableLocation(QStandardPaths::PicturesLocation));
|
||||
}
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
|
||||
@@ -444,16 +444,6 @@ void ConfigHandler::setUseJpgForClipboard(const bool value)
|
||||
m_settings.setValue(QStringLiteral("useJpgForClipboard"), value);
|
||||
}
|
||||
|
||||
QString ConfigHandler::saveAfterCopyPathValue()
|
||||
{
|
||||
return m_settings.value(QStringLiteral("saveAfterCopyPath")).toString();
|
||||
}
|
||||
|
||||
void ConfigHandler::setSaveAfterCopyPath(const QString& path)
|
||||
{
|
||||
m_settings.setValue(QStringLiteral("saveAfterCopyPath"), path);
|
||||
}
|
||||
|
||||
void ConfigHandler::setDefaults()
|
||||
{
|
||||
m_settings.clear();
|
||||
|
||||
@@ -80,9 +80,6 @@ public:
|
||||
bool saveAfterCopyValue();
|
||||
void setSaveAfterCopy(const bool);
|
||||
|
||||
QString saveAfterCopyPathValue();
|
||||
void setSaveAfterCopyPath(const QString&);
|
||||
|
||||
bool copyPathAfterSaveEnabled();
|
||||
void setCopyPathAfterSaveEnabled(const bool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user