feat: move session restore file to cache directory

This commit is contained in:
CJ van den Berg 2024-04-11 18:33:49 +02:00
parent 2416251fc3
commit 137947355d

View file

@ -413,7 +413,7 @@ pub fn get_restore_file_name() ![]const u8 {
const restore_file = if (local.restore_file) |file|
file
else
try std.fmt.bufPrint(&local.restore_file_buffer, "{s}/{s}", .{ try get_app_config_dir(application_name), restore_file_name });
try std.fmt.bufPrint(&local.restore_file_buffer, "{s}/{s}", .{ try get_app_cache_dir(application_name), restore_file_name });
local.restore_file = restore_file;
return restore_file;
}