| 19 | |
| 20 | |
| 21 | void ImageToPatternDialog::init(SimulationFacade simulationFacade) |
| 22 | { |
| 23 | _simulationFacade = simulationFacade; |
| 24 | |
| 25 | auto path = std::filesystem::current_path(); |
| 26 | if (path.has_parent_path()) { |
| 27 | path = path.parent_path(); |
| 28 | } |
| 29 | _startingPath = GlobalSettings::get().getValue("dialogs.open image.starting path", path.string()); |
| 30 | } |
| 31 | |
| 32 | void ImageToPatternDialog::shutdown() |
| 33 | { |