This commit is contained in:
crschnick 2024-06-29 09:46:14 +00:00
parent d10397495e
commit da6caf0c78
2 changed files with 5 additions and 1 deletions

View file

@ -50,6 +50,10 @@ public class MarkdownComp extends Comp<CompStructure<StackPane>> {
TEMP = ShellTemp.getLocalTempDataDirectory("wv");
}
if (markdown == null) {
return null;
}
var hash = markdown.hashCode();
var file = TEMP.resolve("md-" + hash + ".html");
if (Files.exists(file)) {

View file

@ -50,7 +50,7 @@ public class ModifiedStage extends Stage {
return;
}
if (OsType.getLocal() != OsType.WINDOWS || AppPrefs.get() == null) {
if (OsType.getLocal() != OsType.WINDOWS || AppPrefs.get() == null || AppPrefs.get().theme == null) {
stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("seamless-frame"), false);
stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("separate-frame"), true);
return;