D9300: Store screenMapping info only once

2017-12-18 Thread Andras Mantia
amantia closed this revision. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik, mlaurent, mart Cc: mart, mlaurent, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol

D9300: Store screenMapping info only once

2017-12-15 Thread Andras Mantia
amantia added a comment. I will merge this latest on Monday if there is no further objection REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik, mlaurent, mart Cc: mart, mlaurent, plasma-devel,

D9300: Store screenMapping info only once

2017-12-14 Thread Andras Mantia
amantia added a comment. In https://phabricator.kde.org/D9300#179031, @broulik wrote: > Screen mapper is a singleton type, so it won't cause problems when one screen adds a mapping, it will propagate to the other containments automagically? Before we had `plasmoid.configuration` which

D9300: Store screenMapping info only once

2017-12-13 Thread Kai Uwe Broulik
broulik added a comment. Screen mapper is a singleton type, so it won't cause problems when one screen adds a mapping, it will propagate to the other containments automagically? Before we had `plasmoid.configuration` which signals changes but C++ does not, obviously. REPOSITORY R119

D9300: Store screenMapping info only once

2017-12-13 Thread Eike Hein
hein added a comment. I'm totally on board with avoiding the redundant data for sure, just double-checking since it sets a precedent etc. REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik,

D9300: Store screenMapping info only once

2017-12-13 Thread Andras Mantia
amantia added a comment. I think it is better to store once, than 2-3 times (per desktop) as the data is the same. I'm not sure if the corona level is the best, although I don't see big problems with it. REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL

D9300: Store screenMapping info only once

2017-12-13 Thread Eike Hein
hein added a comment. Are you sure @mart? Do we really want to store applet-specific (though not applet instance-specific) config at the corona level? REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein,

D9300: Store screenMapping info only once

2017-12-13 Thread Marco Martin
mart accepted this revision. mart added a comment. fine with me, would like to still have Eike to chime in REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik, mlaurent, mart Cc: mart, mlaurent,

D9300: Store screenMapping info only once

2017-12-13 Thread Laurent Montel
mlaurent accepted this revision. mlaurent added a comment. This revision is now accepted and ready to land. seems good for me REPOSITORY R119 Plasma Desktop BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik, mlaurent Cc:

D9300: Store screenMapping info only once

2017-12-13 Thread Andras Mantia
amantia updated this revision to Diff 23846. amantia added a comment. Add const REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D9300?vs=23821=23846 BRANCH master REVISION DETAIL https://phabricator.kde.org/D9300 AFFECTED FILES

D9300: Store screenMapping info only once

2017-12-13 Thread Laurent Montel
mlaurent added inline comments. INLINE COMMENTS > screenmapper.cpp:202 > +KConfigGroup group(config, QLatin1String("ScreenMapping")); > +QStringList mapping = > group.readEntry(QLatin1String("screenMapping"), QStringList{}); > +setScreenMapping(mapping);

D9300: Store screenMapping info only once

2017-12-12 Thread Andras Mantia
amantia added reviewers: Plasma, mwolff, hein, broulik. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D9300 To: amantia, #plasma, mwolff, hein, broulik Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D9300: Store screenMapping info only once

2017-12-12 Thread Andras Mantia
amantia created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. REVISION SUMMARY Until now every FolderView applet stored exactly the same screenMapping info in the config file. Store it only once using the config