diff options
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_session_options.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp index 1af87cd2..4390867e 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_session_options.cpp @@ -62,6 +62,18 @@ void page_session_options::SaveSettings(){ QFile file(lopenWatchFile); if(file.open(QIODevice::WriteOnly) ){ file.close(); } //just need to touch it to create the file } + + //User Icon + QString path = QDir::homePath()+"/.loginIcon.png"; //where the icon should be placed + QString icopath = ui->push_session_setUserIcon->whatsThis(); + qDebug() << "User Icon:" << icopath; + if(icopath != path && QFile::exists(icopath)){ + QPixmap ico(icopath); + ico = ico.scaled(64,64, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); + bool ok = ico.save(path); + qDebug() << " - Saved User Icon:" << ok; + } + emit HasPendingChanges(false); } |