Changeset ce5c3d7


Ignore:
Timestamp:
04/16/14 13:07:00 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
53c388a, 51ace02
Parents:
03d90a0
Message:

Oops, forgot to connect the background timer to the slot that updates the background. Also clean up when the settings file gets synced.

Location:
lumina/lumina-desktop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-desktop/LDesktop.cpp

    r405554c0 rce5c3d7  
    2525  bgtimer = new QTimer(this); 
    2626    bgtimer->setSingleShot(true); 
     27    connect(bgtimer, SIGNAL(timeout()), this, SLOT(UpdateBackground()) ); 
    2728  watcher = new QFileSystemWatcher(this); 
    2829    connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(SettingsChanged()) ); 
     
    5455// ===================== 
    5556void LDesktop::SettingsChanged(){ 
     57  settings->sync(); //make sure to catch external settings changes 
    5658  QTimer::singleShot(1,this, SLOT(UpdateMenu()) ); 
    5759  QTimer::singleShot(1,this, SLOT(UpdateBackground()) ); 
     
    139141  qDebug() << " - Update Background:" << desktopnumber; 
    140142  //Get the list of background(s) to show 
    141   settings->sync(); //make sure to catch external settings changes 
    142143  QStringList bgL = settings->value(DPREFIX+"background/filelist", "").toStringList(); 
    143144  //qDebug() << " - List:" << bgL << CBG; 
  • lumina/lumina-desktop/LPanel.cpp

    r214f3d5 rce5c3d7  
    4444void LPanel::UpdatePanel(){ 
    4545  //Create/Update the panel as designated in the Settings file 
     46  settings->sync(); //make sure to catch external settings changes 
    4647  //First set the geometry of the panel and send the EWMH message to reserve that space 
    4748  qDebug() << "Update Panel"; 
Note: See TracChangeset for help on using the changeset viewer.