aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r--lumina-desktop/LDesktop.cpp6
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);
}
bgstack15