Small fixes

This commit is contained in:
crschnick 2024-09-29 13:48:15 +00:00
parent 135ebebe25
commit cb10d27c0d
2 changed files with 9 additions and 6 deletions

View file

@ -130,14 +130,17 @@ public class AppLayoutModel {
var now = Instant.now();
var zone = ZoneId.of(ZoneId.SHORT_IDS.get("PST"));
var phStart = ZonedDateTime.of(2024, 10, 22, 0, 1, 0, 0, zone).toInstant();
var phEnd = ZonedDateTime.of(2024, 10, 29, 23, 59, 0, 0, zone).toInstant();
var phShow = now.isAfter(phStart) && now.isBefore(phEnd);
var clicked = AppCache.get("phClicked",Boolean.class,() -> false);
var phShow = now.isAfter(phStart) && clicked;
if (phShow) {
l.add(new Entry(
new SimpleStringProperty("Product Hunt"),
new LabelGraphic.ImageGraphic("app:producthunt-color.png", 24),
null,
() -> Hyperlinks.open(Hyperlinks.PRODUCT_HUNT),
() -> {
AppCache.update("phClicked", true);
Hyperlinks.open(Hyperlinks.PRODUCT_HUNT);
},
null));
}
return l;

View file

@ -4,7 +4,7 @@
- You can now restart any ended terminal session by pressing R in the terminal
- Add support for the windows credential manager as a password manager
- Reuse existing shell session when adding new connection and searching for available connections
- Implement support for setting custom icons, thanks to https://github.com/selfhst/icons
- Implement support for setting custom icons, thanks to [https://github.com/selfhst/icons](https://github.com/selfhst/icons)
- Replace deprecated wmic tool interaction on Windows
- Add button to log in as a different user for RDP tunnel connections
- Properly terminate all running connections when shutting down
@ -13,7 +13,7 @@
- Rework Windows OS name detection to fix wmic issues
- Improve script summary display
- Upgrade to GraalVM 22.0.2
- There is now a docker image with a web-based desktop environment for XPipe at https://github.com/xpipe-io/xpipe-webtop
- There is now a docker image with a web-based desktop environment for XPipe at [https://github.com/xpipe-io/xpipe-webtop](https://github.com/xpipe-io/xpipe-webtop)
## Fixes
@ -40,4 +40,4 @@
## Product hunt
XPipe will be on ProductHunt on October 22. If you interested, you can follow XPipe at https://www.producthunt.com/products/xpipe.
XPipe will be on ProductHunt on October 22. If you interested, you can follow XPipe at [https://www.producthunt.com/products/xpipe](https://www.producthunt.com/products/xpipe) to get notified.