fix: App-Fixes und Formatierungen
- idioms.json: nur Redensarten, Ursprung in Klammern - vegan recipes: 2 Leerzeilen Zutaten/Zeit - Autor-Trennzeichen entfernt (famous quotes etc.) - budandterence entfernt - Listenwechsel fixiert - Spruchanzahl in Listenauswahl - LEKTIONEN_2026-06-05.md Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+4
-6
@@ -34,7 +34,7 @@ MainView {
|
||||
|
||||
// Funktionen
|
||||
function reloadFortune() {
|
||||
py.call("fortunecookie.get_current_fortune", [], function(result) {
|
||||
py.call("fortunecookie.get_new_fortune", [], function(result) {
|
||||
currentFortune = result;
|
||||
currentFortuneLabel.text = currentFortune;
|
||||
if (fortuneOpened) {
|
||||
@@ -116,7 +116,6 @@ MainView {
|
||||
"famous quotes": "Berühmte Zitate",
|
||||
"idioms": "Redensarten aus aller Welt",
|
||||
"vegan recipes": "Vegane Rezeptideen",
|
||||
"budandterence": "Legendäre Bud Spencer und Terence Hill Sprüche",
|
||||
"unicorn": "Einhorn Glückssprüche (die fast schon wehtun)"
|
||||
};
|
||||
root.currentFortuneListDescription = descriptions[listName] || listName;
|
||||
@@ -289,9 +288,8 @@ MainView {
|
||||
fortuneListCombo.model = listObjects;
|
||||
|
||||
// Aktuelle Liste auswählen
|
||||
for (var i = 0; i < fortuneListCombo.count; i++) {
|
||||
var item = fortuneListCombo.itemAt(i);
|
||||
if (item && item.list_name === currentFortuneList) {
|
||||
for (var i = 0; i < listObjects.length; i++) {
|
||||
if (listObjects[i].list_name === currentFortuneList) {
|
||||
fortuneListCombo.currentIndex = i;
|
||||
break;
|
||||
}
|
||||
@@ -330,7 +328,7 @@ MainView {
|
||||
textRole: "description"
|
||||
|
||||
onActivated: {
|
||||
var newListObj = fortuneListCombo.currentItem;
|
||||
var newListObj = fortuneListCombo.model[fortuneListCombo.currentIndex];
|
||||
var newList = newListObj ? newListObj.list_name : "fortune";
|
||||
py.call("fortunecookie.set_fortune_list", [newList], function() {
|
||||
console.log("Spruchliste gewaehlt: " + newList);
|
||||
|
||||
Reference in New Issue
Block a user