From cee818e8170bbf1aee5e5ca90c0645c95812bffd Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 13 Oct 2015 14:21:32 -0400 Subject: Finish cleaning up the new desktop icon upscaling routines so that an app icon should always match what was requested for the button. --- lumina-desktop/LDesktop.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lumina-desktop/LDesktop.cpp') 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); } -- cgit