fix, save temporary layouts when user applied

pull/12/head
Michail Vourlakos 5 years ago
parent f954999b12
commit ad8723ce4f

@ -718,7 +718,7 @@ void Layouts::save()
}
//! If the layout name changed OR the layout path is a temporary one
if (iLayoutCurrentData.name != iLayoutOriginalData.name) {
if ((iLayoutCurrentData.name != iLayoutOriginalData.name) || iLayoutCurrentData.isTemporary()) {
//! If the layout is Active in MultipleLayouts
if (m_corona->layoutsManager()->memoryUsage() == Types::MultipleLayouts && generic->isActive()) {
qDebug() << " Active Layout Should Be Renamed From : " << generic->name() << " TO :: " << iLayoutCurrentData.name;

@ -118,6 +118,11 @@ bool Layout::isForFreeActivities() const
return ((activities.count() == 1) && (activities[0] == FREEACTIVITIESID));
}
bool Layout::isTemporary() const
{
return id.startsWith("/tmp");
}
bool Layout::isEmpty() const
{
return isNull();

@ -54,6 +54,7 @@ public:
//! Functionality
bool isShared() const;
bool isForFreeActivities() const;
bool isTemporary() const;
bool isNull() const;
bool isEmpty() const;

Loading…
Cancel
Save