diff options
author | Ken Moore <ken@pcbsd.org> | 2016-07-25 10:43:26 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-07-25 10:43:26 -0400 |
commit | 93183a40695cf7705514711cca76980518346790 (patch) | |
tree | 27108c042e9ecd6a9d667717f02cb93f94f6cf55 /src-qt5/core-utils/lumina-config/pages/page_compton.cpp | |
parent | Fix up the screen brightness detection on FreeBSD (found a logic reversal). (diff) | |
download | lumina-93183a40695cf7705514711cca76980518346790.tar.gz lumina-93183a40695cf7705514711cca76980518346790.tar.bz2 lumina-93183a40695cf7705514711cca76980518346790.zip |
Fix a bug in the compton page: allow overwriting the settings file on save.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages/page_compton.cpp')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_compton.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_compton.cpp b/src-qt5/core-utils/lumina-config/pages/page_compton.cpp index d0718dc2..fcbd3e41 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_compton.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_compton.cpp @@ -28,13 +28,14 @@ void page_compton::SaveSettings(){ emit HasPendingChanges(false); QString set = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/compton.conf"; - LUtils::writeFile(set, ui->text_file->toPlainText().split("\n") ); + LUtils::writeFile(set, ui->text_file->toPlainText().split("\n"),true); } void page_compton::LoadSettings(int){ emit HasPendingChanges(false); emit ChangePageTitle( tr("Compositor Settings") ); QString set = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/compton.conf"; + qDebug() << "Load Compton settings:" << set; ui->text_file->setPlainText( LUtils::readFile(set).join("\n") ); } |