encapsulate themes dir across platforms

This commit is contained in:
julian 2023-05-09 17:27:48 -06:00
parent 3757385b81
commit f8e6b060e6

View file

@ -65,14 +65,14 @@ abstract class StackFileSystem {
static Future<Directory> applicationThemesDirectory() async {
final root = await applicationRootDirectory();
if (Util.isDesktop) {
// if (Util.isDesktop) {
final dir = Directory("${root.path}/themes");
if (!dir.existsSync()) {
await dir.create();
}
return dir;
} else {
return root;
}
// } else {
// return root;
// }
}
}