1 | static File userDesktopDir() { |
2 | File f = toFileOpt(loadTextFile(userDesktopDirPointerFile())); |
3 | if (f != null) ret f; |
4 | final new Var<File> v; |
5 | selectDir("Please select your desktop directory", userDir("Desktop"), voidfunc(File f) { v.set(f); }); |
6 | waitForVarToBeNotNull(v); |
7 | saveTextFile(userDesktopDirPointerFile(), f2s(v!)); |
8 | ret v!; |
9 | } |
10 | |
11 | static File userDesktopDir(S sub) { |
12 | ret newFile(userDesktopDir(), sub); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015311 |
Snippet name: | userDesktopDir |
Eternal ID of this version: | #1015311/8 |
Text MD5: | 3e1cc019488af00bb495b0bbb3931724 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-27 15:09:32 |
Source code size: | 432 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 383 / 439 |
Version history: | 7 change(s) |
Referenced in: | [show references] |