dfmanager cleanup (#6211)
* Turn `DFManager` into a singleton * PIMPL `DFManager` * Cleanup namespace usage in `dfmanager.cc` * Constify `DFManager` interface * Fix bad `reinterpret_cast` between `std::string` and `Glib::ustring` Co-authored-by: Flössie <floessie.mail@gmail.com> Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
This commit is contained in:
@@ -2641,8 +2641,8 @@ void Preferences::darkFrameChanged()
|
||||
{
|
||||
//Glib::ustring s(darkFrameDir->get_filename());
|
||||
Glib::ustring s(darkFrameDir->get_current_folder());
|
||||
//if( s.compare( rtengine::dfm.getPathname()) !=0 ){
|
||||
rtengine::dfm.init(s);
|
||||
//if( s.compare( rtengine::DFManager::getInstance().getPathname()) !=0 ){
|
||||
rtengine::DFManager::getInstance().init(s);
|
||||
updateDFinfos();
|
||||
//}
|
||||
}
|
||||
@@ -2660,7 +2660,7 @@ void Preferences::flatFieldChanged()
|
||||
void Preferences::updateDFinfos()
|
||||
{
|
||||
int t1, t2;
|
||||
rtengine::dfm.getStat(t1, t2);
|
||||
rtengine::DFManager::getInstance().getStat(t1, t2);
|
||||
Glib::ustring s = Glib::ustring::compose("%1: %2 %3, %4 %5", M("PREFERENCES_DARKFRAMEFOUND"), t1, M("PREFERENCES_DARKFRAMESHOTS"), t2, M("PREFERENCES_DARKFRAMETEMPLATES"));
|
||||
dfLabel->set_text(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user