mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-24 11:22:04 +00:00
fix: ui: create config directory before config file
This commit is contained in:
parent
e1f89cc1da
commit
bbf33c409f
1 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,9 @@ Backend::Backend() {
|
|||
config.profiles() = this->m_profiles;
|
||||
|
||||
try {
|
||||
std::filesystem::create_directories(path.parent_path());
|
||||
if (!std::filesystem::exists(path.parent_path()))
|
||||
throw ls::error("unable to create configuration directory");
|
||||
config.write(path);
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "unable to write configuration:\n- " << e.what() << "\n";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue