| 45 | } |
| 46 | |
| 47 | optional<string> settingsDirectory() |
| 48 | { |
| 49 | const auto path |
| 50 | = QStandardPaths::writableLocation( QStandardPaths::AppDataLocation ); |
| 51 | if ( path == "" ) |
| 52 | { |
| 53 | LOG( ERROR ) << "Could not find settings directory."; |
| 54 | return std::nullopt; |
| 55 | } |
| 56 | |
| 57 | return path.toStdString(); |
| 58 | } |
| 59 | |
| 60 | std::optional<std::string> verifyIconFilePath( std::string filename ) |
| 61 | { |