orange-van-60470
01/17/2022, 1:13 PMstraight-oyster-87301
01/17/2022, 2:49 PMstraight-oyster-87301
01/17/2022, 2:50 PMstraight-oyster-87301
01/17/2022, 2:50 PMhx
@:bind(this, MouseEvent.DBL_CLICK)
private function doShowSource(me:MouseEvent) {
if (me.target != this)
return;
if (mod.git_path == null)
return;
me.bubble = false;
switch (Sys.systemName()) {
case "Windows":
Sys.command("start", ['https://github.com/${mod.git_path}']);
case "Mac":
Sys.command("open", ['https://github.com/${mod.git_path}']);
case "Linux":
Sys.command("xdg-open", ['https://github.com/${mod.git_path}']);
}
}straight-oyster-87301
01/17/2022, 2:55 PMxdg-open http://haxeui.org/explorer/ only opens once so it's a code problembright-gpu-74537
01/17/2022, 3:01 PMstraight-oyster-87301
01/17/2022, 3:10 PMstraight-oyster-87301
01/17/2022, 3:18 PMbright-gpu-74537
01/17/2022, 5:07 PMbright-gpu-74537
01/17/2022, 5:07 PMstraight-oyster-87301
01/17/2022, 5:07 PMstraight-oyster-87301
01/17/2022, 5:08 PMbright-gpu-74537
01/17/2022, 5:08 PMbright-gpu-74537
01/17/2022, 5:10 PMbright-gpu-74537
01/17/2022, 5:10 PMstraight-oyster-87301
01/17/2022, 5:10 PMbright-gpu-74537
01/17/2022, 5:11 PMbright-gpu-74537
01/17/2022, 5:11 PMstraight-oyster-87301
01/17/2022, 5:12 PMbright-gpu-74537
01/17/2022, 5:12 PMstraight-oyster-87301
01/17/2022, 5:12 PMbright-gpu-74537
01/17/2022, 5:13 PMvar temp = 0
and then in the function:
haxe
if (temp > 0) throw "foo";
temp++;bright-gpu-74537
01/17/2022, 5:13 PMbright-gpu-74537
01/17/2022, 5:14 PMstraight-oyster-87301
01/17/2022, 5:14 PMstraight-oyster-87301
01/17/2022, 5:15 PMbright-gpu-74537
01/17/2022, 5:16 PMhaxe something.hxml debug (i think)bright-gpu-74537
01/17/2022, 5:17 PMbright-gpu-74537
01/17/2022, 5:18 PMbright-gpu-74537
01/17/2022, 5:18 PM