automatically select the system monitor profile if the preferences say so
Fix for issue #3821
This commit is contained in:
@@ -302,6 +302,8 @@ public:
|
||||
if (loadAll) {
|
||||
loadProfiles(stdProfilesDir, nullptr, nullptr, &fileStdProfilesFileNames, true);
|
||||
}
|
||||
|
||||
defaultMonitorProfile = settings->monitorProfile;
|
||||
}
|
||||
|
||||
cmsHPROFILE workingSpace(const Glib::ustring& name) const
|
||||
@@ -534,6 +536,16 @@ public:
|
||||
return getProofIntents(getProfile(name));
|
||||
}
|
||||
|
||||
Glib::ustring getDefaultMonitorProfileName() const
|
||||
{
|
||||
return defaultMonitorProfile;
|
||||
}
|
||||
|
||||
void setDefaultMonitorProfileName(const Glib::ustring &name)
|
||||
{
|
||||
defaultMonitorProfile = name;
|
||||
}
|
||||
|
||||
private:
|
||||
using ProfileMap = std::map<Glib::ustring, cmsHPROFILE>;
|
||||
using MatrixMap = std::map<Glib::ustring, TMatrix>;
|
||||
@@ -617,6 +629,18 @@ rtengine::ProfileContent rtengine::ICCStore::getContent(const Glib::ustring& nam
|
||||
return implementation->getContent(name);
|
||||
}
|
||||
|
||||
|
||||
Glib::ustring rtengine::ICCStore::getDefaultMonitorProfileName() const
|
||||
{
|
||||
return implementation->getDefaultMonitorProfileName();
|
||||
}
|
||||
|
||||
|
||||
void rtengine::ICCStore::setDefaultMonitorProfileName(const Glib::ustring &name)
|
||||
{
|
||||
implementation->setDefaultMonitorProfileName(name);
|
||||
}
|
||||
|
||||
cmsHPROFILE rtengine::ICCStore::getXYZProfile() const
|
||||
{
|
||||
return implementation->getXYZProfile();
|
||||
|
Reference in New Issue
Block a user