mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
encapsulate themes dir across platforms
This commit is contained in:
parent
3757385b81
commit
f8e6b060e6
1 changed files with 8 additions and 8 deletions
|
@ -65,14 +65,14 @@ abstract class StackFileSystem {
|
|||
|
||||
static Future<Directory> applicationThemesDirectory() async {
|
||||
final root = await applicationRootDirectory();
|
||||
if (Util.isDesktop) {
|
||||
final dir = Directory("${root.path}/themes");
|
||||
if (!dir.existsSync()) {
|
||||
await dir.create();
|
||||
}
|
||||
return dir;
|
||||
} else {
|
||||
return root;
|
||||
// if (Util.isDesktop) {
|
||||
final dir = Directory("${root.path}/themes");
|
||||
if (!dir.existsSync()) {
|
||||
await dir.create();
|
||||
}
|
||||
return dir;
|
||||
// } else {
|
||||
// return root;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue