Various fixes

This commit is contained in:
crschnick 2024-06-21 23:26:24 +00:00
parent de3179f968
commit 1e8699c4fb
32 changed files with 52 additions and 27 deletions

View file

@ -136,6 +136,11 @@ public class StoreCreationComp extends DialogComp {
.getUuid();
}
// Don't use the all connections category
if (targetCategory.equals(DataStorage.get().getAllConnectionsCategory().getUuid())) {
targetCategory = DataStorage.get().getDefaultConnectionsCategory().getUuid();
}
return DataStoreEntry.createNew(
UUID.randomUUID(), targetCategory, name.getValue(), store.getValue());
},

View file

@ -54,13 +54,6 @@ public class StoreEntryListComp extends SimpleComp {
StoreViewState.get().getAllEntries().getList(),
StoreViewState.get().getActiveCategory());
var map = new LinkedHashMap<Comp<?>, ObservableValue<Boolean>>();
map.put(
createList(),
Bindings.not(Bindings.isEmpty(StoreViewState.get()
.getCurrentTopLevelSection()
.getShownChildren()
.getList())));
map.put(new StoreIntroComp(), showIntro);
map.put(
new StoreNotFoundComp(),
@ -71,6 +64,13 @@ public class StoreEntryListComp extends SimpleComp {
.getCurrentTopLevelSection()
.getShownChildren()
.getList())));
map.put(
createList(),
Bindings.not(Bindings.isEmpty(StoreViewState.get()
.getCurrentTopLevelSection()
.getShownChildren()
.getList())));
return new MultiContentComp(map).createRegion();
}
}

View file

@ -183,7 +183,8 @@ public class AppTheme {
builder.append(content);
});
AppResources.with("atlantafx.base", theme.getUserAgentStylesheet(), path -> {
// Watch out for the leading slash
AppResources.with("atlantafx.base", theme.getUserAgentStylesheet().substring(1), path -> {
var baseStyleContent = Files.readString(path);
builder.append("\n")
.append(baseStyleContent

View file

@ -45,10 +45,7 @@ public class AppearanceCategory extends AppPrefsCategory {
.addComp(new IntFieldComp(prefs.uiScale).maxWidth(100), prefs.uiScale)
.nameAndDescription("useSystemFont")
.addToggle(prefs.useSystemFont)
.nameAndDescription("condenseConnectionDisplay")
.addToggle(prefs.condenseConnectionDisplay)
.nameAndDescription("showChildCategoriesInParentCategory")
.addToggle(prefs.showChildCategoriesInParentCategory))
)
.addTitle("windowOptions")
.sub(new OptionsBuilder()
.nameAndDescription("windowOpacity")

View file

@ -16,6 +16,10 @@ public class WorkflowCategory extends AppPrefsCategory {
return new OptionsBuilder()
.addTitle("workflow")
.sub(new OptionsBuilder()
.nameAndDescription("condenseConnectionDisplay")
.addToggle(prefs.condenseConnectionDisplay)
.nameAndDescription("showChildCategoriesInParentCategory")
.addToggle(prefs.showChildCategoriesInParentCategory)
.nameAndDescription("openConnectionSearchWindowOnConnectionCreation")
.addToggle(prefs.openConnectionSearchWindowOnConnectionCreation)
.nameAndDescription("requireDoubleClickForConnections")

View file

@ -157,6 +157,11 @@ public class StandardStorage extends DataStorage {
.isEmpty()) {
dataStoreCategory.setCategoryUuid(DEFAULT_CATEGORY_UUID);
}
if (dataStoreCategory.getCategoryUuid() != null &&
dataStoreCategory.getCategoryUuid().equals(ALL_CONNECTIONS_CATEGORY_UUID)) {
dataStoreCategory.setCategoryUuid(DEFAULT_CATEGORY_UUID);
}
});
}
} catch (IOException ex) {

View file

@ -59,7 +59,9 @@ public class FileBridge {
}
AppFileWatcher.getInstance().startWatchersInDirectories(List.of(TEMP), (changed, kind) -> {
INSTANCE.handleWatchEvent(changed, kind);
if (INSTANCE != null) {
INSTANCE.handleWatchEvent(changed, kind);
}
});
} catch (IOException e) {
ErrorEvent.fromThrowable(e).handle();

View file

@ -20,7 +20,7 @@
-fx-spacing: 0.3em;
}
.error-report .attachments .attachment-list .list-box-content {
.error-report .attachments .attachment-list .list-content {
-fx-padding: 0.5em 1em;
}

View file

@ -479,3 +479,5 @@ areOnlySupportedLimit=understøttes kun med en professionel licens, når man har
enabled=Aktiveret
enableGitStoragePtbDisabled=Git-synkronisering er deaktiveret for offentlige test-builds for at forhindre brug med almindelige release-git-lagre og for at modvirke, at man bruger en PTB-build som sin daglige driver.
copyId=Kopi ID
requireDoubleClickForConnections=Kræver dobbeltklik for forbindelser
requireDoubleClickForConnectionsDescription=Hvis den er aktiveret, skal du dobbeltklikke på forbindelser for at starte dem. Det er nyttigt, hvis man er vant til at dobbeltklikke på ting.

View file

@ -473,3 +473,5 @@ areOnlySupportedLimit=werden nur mit einer professionellen Lizenz unterstützt,
enabled=Aktiviert
enableGitStoragePtbDisabled=Die Git-Synchronisierung ist für öffentliche Test-Builds deaktiviert, um die Verwendung mit regulären Git-Repositories zu verhindern und um davon abzuraten, einen PTB-Build als täglichen Treiber zu verwenden.
copyId=ID kopieren
requireDoubleClickForConnections=Doppelklick für Verbindungen erforderlich
requireDoubleClickForConnectionsDescription=Wenn diese Funktion aktiviert ist, musst du auf die Verbindungen doppelklicken, um sie zu starten. Das ist nützlich, wenn du es gewohnt bist, auf Dinge doppelt zu klicken.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=sólo son compatibles con una licencia profesional cuando
enabled=Activado
enableGitStoragePtbDisabled=La sincronización Git está desactivada para las compilaciones públicas de prueba, para evitar que se utilicen con los repositorios git de publicación regular y para desalentar el uso de una compilación PTB como tu conductor diario.
copyId=ID de copia
requireDoubleClickForConnections=Requiere doble clic para las conexiones
requireDoubleClickForConnectionsDescription=Si está activado, tienes que hacer doble clic en las conexiones para iniciarlas. Esto es útil si estás acostumbrado a hacer doble clic en las cosas.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=ne sont pris en charge qu'avec une licence professionnelle
enabled=Activé
enableGitStoragePtbDisabled=La synchronisation Git est désactivée pour les versions de test publiques afin d'éviter toute utilisation avec les dépôts git des versions régulières et de décourager l'utilisation d'une version PTB comme conducteur quotidien.
copyId=ID de copie
requireDoubleClickForConnections=Nécessite un double clic pour les connexions
requireDoubleClickForConnectionsDescription=Si cette option est activée, tu dois double-cliquer sur les connexions pour les lancer. C'est utile si tu as l'habitude de double-cliquer sur les choses.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=sono supportati solo con una licenza professionale quando
enabled=Abilitato
enableGitStoragePtbDisabled=La sincronizzazione Git è disabilitata per le build di test pubbliche per evitare l'uso con i repository git di rilascio regolari e per scoraggiare l'uso di una build PTB come guida quotidiana.
copyId=Copia ID
requireDoubleClickForConnections=Richiede un doppio clic per le connessioni
requireDoubleClickForConnectionsDescription=Se abilitato, devi fare doppio clic sulle connessioni per avviarle. Questo è utile se sei abituato a fare doppio clic.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=$COUNT$ 以上の接続がある場合、プロフェッ
enabled=有効にする
enableGitStoragePtbDisabled=Gitの同期をパブリックテストビルドでは無効にしているのは、通常のリリース用gitリポジトリとの使い回しを防ぎ、PTBビルドをデイリードライバーとして使わないようにするためだ。
copyId=コピーID
requireDoubleClickForConnections=接続にはダブルクリックが必要
requireDoubleClickForConnectionsDescription=有効にすると、接続をダブルクリックしないと起動しなくなる。ダブルクリックに慣れている人には便利な機能だ。

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=worden alleen ondersteund met een professionele licentie b
enabled=Ingeschakeld
enableGitStoragePtbDisabled=Git synchronisatie is uitgeschakeld voor publieke test builds om gebruik met reguliere release git repositories te voorkomen en om het gebruik van een PTB build als je dagelijkse driver te ontmoedigen.
copyId=ID kopiëren
requireDoubleClickForConnections=Dubbelklikken vereist voor verbindingen
requireDoubleClickForConnectionsDescription=Als dit is ingeschakeld, moet je dubbelklikken op verbindingen om ze te starten. Dit is handig als je gewend bent om op dingen te dubbelklikken.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=só são suportados com uma licença profissional quando t
enabled=Ativado
enableGitStoragePtbDisabled=A sincronização do Git está desactivada para compilações de teste públicas para evitar a utilização com repositórios git de lançamento regulares e para desencorajar a utilização de uma compilação PTB como o teu condutor diário.
copyId=ID de cópia
requireDoubleClickForConnections=Exige duplo clique para ligações
requireDoubleClickForConnectionsDescription=Se estiver ativado, tens de fazer duplo clique nas ligações para as iniciar. Isto é útil se estiveres habituado a fazer duplo clique em coisas.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=поддерживаются только професси
enabled=Включено
enableGitStoragePtbDisabled=Git-синхронизация отключена для публичных тестовых сборок, чтобы предотвратить их использование с обычными релизными git-репозиториями и не допустить использования PTB-сборки в качестве ежедневного драйвера.
copyId=Идентификатор копии
requireDoubleClickForConnections=Требуется двойной щелчок для подключения
requireDoubleClickForConnectionsDescription=Если эта опция включена, тебе придется дважды щелкнуть по соединениям, чтобы запустить их. Это полезно, если ты привык все запускать двойным щелчком.

View file

@ -461,3 +461,5 @@ areOnlySupportedLimit=yalnızca $COUNT$ adresinden daha fazla bağlantıya sahip
enabled=Etkin
enableGitStoragePtbDisabled=Git senkronizasyonu, normal sürüm git depoları ile kullanımı önlemek ve günlük sürücünüz olarak bir PTB derlemesini kullanmaktan vazgeçirmek için genel test derlemeleri için devre dışı bırakılmıştır.
copyId=Kopya Kimliği
requireDoubleClickForConnections=Bağlantılar için çift tıklama gerektir
requireDoubleClickForConnectionsDescription=Etkinleştirilirse, bağlantıları başlatmak için çift tıklamanız gerekir. Bu, bir şeyleri çift tıklamaya alışkınsanız kullanışlıdır.

View file

@ -460,3 +460,5 @@ areOnlySupportedLimit=只有在连接数超过$COUNT$ 时才支持专业许可
enabled=已启用
enableGitStoragePtbDisabled=公共测试版已禁用 Git 同步功能,以防止与常规发布版本的 git 仓库一起使用,并避免将公共测试版作为日常驱动程序使用。
copyId=复制 ID
requireDoubleClickForConnections=要求双击连接
requireDoubleClickForConnectionsDescription=如果启用,则必须双击连接才能启动。如果您习惯双击事物,这将非常有用。

View file

@ -1,2 +1,3 @@
wsl=Windows Subsystem for Linux
docker=Docker
docker=Docker
proxmox=Proxmox PVE

View file

@ -103,7 +103,6 @@ originDestinationAddress=Oprindelsesdestinationsadresse
origin=Oprindelse
remoteHost=Fjernvært
address=Adresse
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Opret forbindelse til systemer i et virtuelt Proxmox-miljø
proxmoxVm.displayName=Proxmox VM

View file

@ -97,7 +97,6 @@ originDestinationAddress=Ursprüngliche Zieladresse
origin=Herkunft
remoteHost=Entfernter Host
address=Adresse
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Verbindung zu Systemen in einer virtuellen Umgebung von Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Origin destination address
origin=Origin
remoteHost=Remote host
address=Address
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Connect to systems in a Proxmox Virtual Environment
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Dirección de destino de origen
origin=Origen
remoteHost=Host remoto
address=Dirección
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Conectarse a sistemas en un Entorno Virtual Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Adresse d'origine et de destination
origin=Origine
remoteHost=Hôte distant
address=Adresse
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Se connecter à des systèmes dans un environnement virtuel Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Indirizzo di origine e destinazione
origin=Origine
remoteHost=Host remoto
address=Indirizzo
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Connettersi ai sistemi in un ambiente virtuale Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=送信元アドレス
origin=由来
remoteHost=リモートホスト
address=アドレス
proxmox=プロックスモックス
proxmox.displayName=プロックスモックス
proxmox.displayDescription=Proxmox仮想環境のシステムに接続する
proxmoxVm.displayName=プロックスモックスVM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Herkomst bestemmingsadres
origin=Oorsprong
remoteHost=Externe host
address=Adres
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Verbinding maken met systemen in een Proxmox virtuele omgeving
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Endereço de destino de origem
origin=Origem
remoteHost=Anfitrião remoto
address=Aborda
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Liga-te a sistemas num ambiente virtual Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Адрес места назначения
origin=Origin
remoteHost=Удаленный хост
address=Адрес
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Подключение к системам в виртуальной среде Proxmox
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=Kaynak hedef adresi
origin=Köken
remoteHost=Uzak ana bilgisayar
address=Adres
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=Proxmox Sanal Ortamındaki sistemlere bağlanma
proxmoxVm.displayName=Proxmox VM

View file

@ -95,7 +95,6 @@ originDestinationAddress=起始目的地地址
origin=起源
remoteHost=远程主机
address=地址
proxmox=Proxmox
proxmox.displayName=Proxmox
proxmox.displayDescription=连接 Proxmox 虚拟环境中的系统
proxmoxVm.displayName=Proxmox VM