Hyprpanel config no longer resets if there is a parsing error. (#640)

This commit is contained in:
Jas Singh
2024-12-26 16:33:43 -08:00
committed by GitHub
parent 0c9b72708e
commit dd931f493d
2 changed files with 20 additions and 13 deletions

View File

@@ -10,7 +10,9 @@ declare global {
}
export function ensureDirectory(path: string): void {
if (!GLib.file_test(path, GLib.FileTest.EXISTS)) Gio.File.new_for_path(path).make_directory_with_parents(null);
if (!GLib.file_test(path, GLib.FileTest.EXISTS)) {
Gio.File.new_for_path(path).make_directory_with_parents(null);
}
}
export function ensureFile(path: string): void {