diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-13 14:21:32 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-13 14:21:32 -0400 |
commit | cee818e8170bbf1aee5e5ca90c0645c95812bffd (patch) | |
tree | abfc44c11b9a048b8c252df8df2a45468b400d3b /lumina-desktop/LDesktop.cpp | |
parent | Add Inheritance to the Lumian theme files. (diff) | |
download | lumina-cee818e8170bbf1aee5e5ca90c0645c95812bffd.tar.gz lumina-cee818e8170bbf1aee5e5ca90c0645c95812bffd.tar.bz2 lumina-cee818e8170bbf1aee5e5ca90c0645c95812bffd.zip |
Finish cleaning up the new desktop icon upscaling routines so that an app icon should always match what was requested for the button.
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r-- | lumina-desktop/LDesktop.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp index 5563164f..241302a4 100644 --- a/lumina-desktop/LDesktop.cpp +++ b/lumina-desktop/LDesktop.cpp @@ -374,7 +374,10 @@ void LDesktop::RemoveDeskPlugin(QString ID){ void LDesktop::IncreaseDesktopPluginIcons(){ int cur = settings->value(DPREFIX+"IconSize",64).toInt(); cur+=16; + issyncing=true; //don't let the change cause a refresh settings->setValue(DPREFIX+"IconSize",cur); + settings->sync(); + QTimer::singleShot(200, this, SLOT(UnlockSettings()) ); bgDesktop->SetIconSize(cur); } @@ -382,7 +385,10 @@ void LDesktop::DecreaseDesktopPluginIcons(){ int cur = settings->value(DPREFIX+"IconSize",64).toInt(); if(cur<32){ return; } //cannot get smaller than 16x16 cur-=16; + issyncing=true; //don't let the change cause a refresh settings->setValue(DPREFIX+"IconSize",cur); + settings->sync(); + QTimer::singleShot(200, this, SLOT(UnlockSettings()) ); bgDesktop->SetIconSize(cur); } |