Various fixes

This commit is contained in:
crschnick 2024-04-28 21:09:40 +00:00
parent bed38d425f
commit 9c3eaa479c
18 changed files with 20 additions and 30 deletions

View file

@ -146,7 +146,10 @@ public class BrowserWelcomeComp extends SimpleComp {
view.createRegion(), view.createRegion(),
() -> { () -> {
ThreadHelper.runAsync(() -> { ThreadHelper.runAsync(() -> {
model.restoreStateAsync(e, disable); var storageEntry = DataStorage.get().getStoreEntryIfPresent(e.getUuid());
if (storageEntry.isPresent()) {
model.openFileSystemAsync(storageEntry.get().ref(), null, disable);
}
}); });
}) })
.minWidth(250) .minWidth(250)

View file

@ -65,7 +65,7 @@ public class AppAvCheck {
alert.getDialogPane().setPadding(new Insets(15)); alert.getDialogPane().setPadding(new Insets(15));
}); });
alert.getButtonTypes().add(new ButtonType(AppI18n.get("gotIt"), ButtonBar.ButtonData.OK_DONE)); alert.getButtonTypes().add(new ButtonType(AppI18n.get("ok"), ButtonBar.ButtonData.OK_DONE));
}); });
a.filter(b -> b.getButtonData().isDefaultButton()) a.filter(b -> b.getButtonData().isDefaultButton())
.ifPresentOrElse(buttonType -> {}, () -> OperationMode.halt(1)); .ifPresentOrElse(buttonType -> {}, () -> OperationMode.halt(1));

View file

@ -49,7 +49,7 @@ public class UpdateChangelogAlert {
var markdown = new MarkdownComp(update.getRawDescription(), s -> " " + s).createRegion(); var markdown = new MarkdownComp(update.getRawDescription(), s -> " " + s).createRegion();
alert.getDialogPane().setContent(markdown); alert.getDialogPane().setContent(markdown);
alert.getButtonTypes().add(new ButtonType(AppI18n.get("gotIt"), ButtonBar.ButtonData.OK_DONE)); alert.getButtonTypes().add(new ButtonType(AppI18n.get("ok"), ButtonBar.ButtonData.OK_DONE));
((Stage) alert.getDialogPane().getScene().getWindow()).setAlwaysOnTop(true); ((Stage) alert.getDialogPane().getScene().getWindow()).setAlwaysOnTop(true);
}, },
r -> r.filter(b -> b.getButtonData().isDefaultButton()).ifPresent(t -> {})); r -> r.filter(b -> b.getButtonData().isDefaultButton()).ifPresent(t -> {}));

View file

@ -94,7 +94,7 @@
/* Section */ /* Section */
.store-entry-section-comp .separator { .store-entry-section-comp > .separator {
-fx-padding: 0 12px 0 35px; -fx-padding: 0 12px 0 35px;
-fx-border-insets: 0px; -fx-border-insets: 0px;
} }
@ -103,7 +103,7 @@
-fx-padding: 5px 0 5px 25px; -fx-padding: 5px 0 5px 25px;
} }
.store-entry-section-comp .separator .line { .store-entry-section-comp > .separator .line {
-fx-padding: 0; -fx-padding: 0;
-fx-border-insets: 0px; -fx-border-insets: 0px;
-fx-background-color: -color-border-subtle; -fx-background-color: -color-border-subtle;
@ -111,7 +111,7 @@
} }
.root:pretty .top > .store-entry-section-comp { .root:pretty .top > .store-entry-section-comp {
-fx-effect: dropshadow(three-pass-box, -color-shadow-default, 2px, 0.5, 0, 1); -fx-effect: dropshadow(three-pass-box, -color-shadow-default, 2, 0.5, 0, 1);
} }
.store-entry-section-comp:root { .store-entry-section-comp:root {

View file

@ -0,0 +1,10 @@
package io.xpipe.core.store;
public abstract class Session {
public abstract boolean isRunning();
public abstract void start() throws Exception;
public abstract void stop() throws Exception;
}

View file

@ -1,17 +1,8 @@
package io.xpipe.core.store; package io.xpipe.core.store;
public interface SingletonSessionStore<T extends SingletonSessionStore.Session> public interface SingletonSessionStore<T extends Session>
extends ExpandedLifecycleStore, InternalCacheDataStore { extends ExpandedLifecycleStore, InternalCacheDataStore {
abstract class Session {
public abstract boolean isRunning();
public abstract void start() throws Exception;
public abstract void stop() throws Exception;
}
@Override @Override
default void finalizeValidate() throws Exception { default void finalizeValidate() throws Exception {
stopSessionIfNeeded(); stopSessionIfNeeded();

View file

@ -233,7 +233,6 @@ whatsNew=Hvad er nyt i version $VERSION$ ($DATE$)
antivirusNoticeTitle=En note om antivirusprogrammer antivirusNoticeTitle=En note om antivirusprogrammer
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Velkommen til XPipe greetingsAlertTitle=Velkommen til XPipe
gotIt=Fik det
eula=Slutbrugerlicensaftale eula=Slutbrugerlicensaftale
news=Nyheder news=Nyheder
introduction=Introduktion introduction=Introduktion

View file

@ -230,8 +230,6 @@ whatsNew=Was ist neu in der Version $VERSION$ ($DATE$)
antivirusNoticeTitle=Ein Hinweis auf Antivirenprogramme antivirusNoticeTitle=Ein Hinweis auf Antivirenprogramme
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Willkommen bei XPipe greetingsAlertTitle=Willkommen bei XPipe
#custom
gotIt=Ok
eula=Endbenutzer-Lizenzvertrag eula=Endbenutzer-Lizenzvertrag
news=Nachrichten news=Nachrichten
introduction=Einführung introduction=Einführung

View file

@ -229,8 +229,6 @@ whatsNew=What's new in version $VERSION$ ($DATE$)
antivirusNoticeTitle=A note on Antivirus programs antivirusNoticeTitle=A note on Antivirus programs
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Welcome to XPipe greetingsAlertTitle=Welcome to XPipe
#context: understood
gotIt=Got It
eula=End User License Agreement eula=End User License Agreement
news=News news=News
introduction=Introduction introduction=Introduction

View file

@ -221,7 +221,6 @@ whatsNew=Novedades de la versión $VERSION$ ($DATE$)
antivirusNoticeTitle=Una nota sobre los programas antivirus antivirusNoticeTitle=Una nota sobre los programas antivirus
updateChangelogAlertTitle=Registro de cambios updateChangelogAlertTitle=Registro de cambios
greetingsAlertTitle=Bienvenido a XPipe greetingsAlertTitle=Bienvenido a XPipe
gotIt=Entendido
eula=Acuerdo de licencia de usuario final eula=Acuerdo de licencia de usuario final
news=Noticias news=Noticias
introduction=Introducción introduction=Introducción

View file

@ -221,7 +221,6 @@ whatsNew=Nouveautés de la version $VERSION$ ($DATE$)
antivirusNoticeTitle=Une note sur les programmes antivirus antivirusNoticeTitle=Une note sur les programmes antivirus
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Bienvenue à XPipe greetingsAlertTitle=Bienvenue à XPipe
gotIt=Compris
eula=Contrat de licence de l'utilisateur final eula=Contrat de licence de l'utilisateur final
news=Nouvelles news=Nouvelles
introduction=Introduction introduction=Introduction

View file

@ -221,7 +221,6 @@ whatsNew=Cosa c'è di nuovo nella versione $VERSION$ ($DATE$)
antivirusNoticeTitle=Una nota sui programmi antivirus antivirusNoticeTitle=Una nota sui programmi antivirus
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Benvenuto in XPipe greetingsAlertTitle=Benvenuto in XPipe
gotIt=Capito
eula=Contratto di licenza con l'utente finale eula=Contratto di licenza con l'utente finale
news=Notizie news=Notizie
introduction=Introduzione introduction=Introduzione

View file

@ -221,7 +221,6 @@ whatsNew=バージョン$VERSION$ ($DATE$) の新機能
antivirusNoticeTitle=アンチウイルスプログラムについて antivirusNoticeTitle=アンチウイルスプログラムについて
updateChangelogAlertTitle=変更履歴 updateChangelogAlertTitle=変更履歴
greetingsAlertTitle=XPipeへようこそ greetingsAlertTitle=XPipeへようこそ
gotIt=理解した
eula=エンドユーザー使用許諾契約書 eula=エンドユーザー使用許諾契約書
news=ニュース news=ニュース
introduction=はじめに introduction=はじめに

View file

@ -221,7 +221,6 @@ whatsNew=Wat is er nieuw in versie $VERSION$ ($DATE$)
antivirusNoticeTitle=Een opmerking over antivirusprogramma's antivirusNoticeTitle=Een opmerking over antivirusprogramma's
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Welkom bij XPipe greetingsAlertTitle=Welkom bij XPipe
gotIt=Gekregen
eula=Licentieovereenkomst voor eindgebruikers eula=Licentieovereenkomst voor eindgebruikers
news=Nieuws news=Nieuws
introduction=Inleiding introduction=Inleiding

View file

@ -221,7 +221,6 @@ whatsNew=O que há de novo na versão $VERSION$ ($DATE$)
antivirusNoticeTitle=Uma nota sobre programas antivírus antivirusNoticeTitle=Uma nota sobre programas antivírus
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Bem-vindo ao XPipe greetingsAlertTitle=Bem-vindo ao XPipe
gotIt=Percebeste
eula=Contrato de licença de utilizador final eula=Contrato de licença de utilizador final
news=Novidades news=Novidades
introduction=Introdução introduction=Introdução

View file

@ -221,7 +221,6 @@ whatsNew=Что нового в версии $VERSION$ ($DATE$)
antivirusNoticeTitle=Заметка об антивирусных программах antivirusNoticeTitle=Заметка об антивирусных программах
updateChangelogAlertTitle=Changelog updateChangelogAlertTitle=Changelog
greetingsAlertTitle=Добро пожаловать в XPipe greetingsAlertTitle=Добро пожаловать в XPipe
gotIt=Понял
eula=Лицензионное соглашение с конечным пользователем eula=Лицензионное соглашение с конечным пользователем
news=Новости news=Новости
introduction=Введение introduction=Введение

View file

@ -221,7 +221,6 @@ whatsNew=$VERSION$ sürümündeki yenilikler ($DATE$)
antivirusNoticeTitle=Antivirüs programları hakkında bir not antivirusNoticeTitle=Antivirüs programları hakkında bir not
updateChangelogAlertTitle=Değişiklik Günlüğü updateChangelogAlertTitle=Değişiklik Günlüğü
greetingsAlertTitle=XPipe'a Hoş Geldiniz greetingsAlertTitle=XPipe'a Hoş Geldiniz
gotIt=Anladım
eula=Son Kullanıcı Lisans Sözleşmesi eula=Son Kullanıcı Lisans Sözleşmesi
news=Haberler news=Haberler
introduction=Giriş introduction=Giriş

View file

@ -221,7 +221,6 @@ whatsNew=$VERSION$ ($DATE$) 中的新功能
antivirusNoticeTitle=关于杀毒软件的说明 antivirusNoticeTitle=关于杀毒软件的说明
updateChangelogAlertTitle=更新日志 updateChangelogAlertTitle=更新日志
greetingsAlertTitle=欢迎访问 XPipe greetingsAlertTitle=欢迎访问 XPipe
gotIt=明白了
eula=最终用户许可协议 eula=最终用户许可协议
news=新闻 news=新闻
introduction=简介 introduction=简介