Skip to content

Commit

Permalink
release 0.49.5 (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker authored Jun 27, 2024
1 parent 7d97bde commit eb4f782
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.49.5 2024-06-26 18:03:12 +0200 Tobias Oetiker <tobi@oetiker.ch>

- fix translation regressions in card list

0.49.4 2024-06-12 11:11:06 +0200 Tobias Oetiker <tobi@oetiker.ch>

- resolve gui object leakage this will result in smaller processes!
Expand Down
2 changes: 1 addition & 1 deletion lib/CallBackery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use CallBackery::Database;
use CallBackery::User;
use Scalar::Util qw(weaken);

our $VERSION = '0.49.4';
our $VERSION = '0.49.5';

=head2 config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ qx.Class.define("callbackery.ui.Card", {
fld[k].setValue('');
}
else {
fld[k].setValue(String(this.xtr(data[k]) || ''));
fld[k].setValue(this.xtr(data[k]).toString() || '');
}
}
last[k] = data[k];
Expand Down Expand Up @@ -126,7 +126,7 @@ qx.Class.define("callbackery.ui.Card", {
if (labelCfg.set) {
['value','tooltip'].forEach(key => {
if (key in labelCfg.set){
labelCfg.set[key] = this.xtr(labelCfg.set[key]);
labelCfg.set[key] = this.xtr(labelCfg.set[key]).toString();
}
});
label.set(labelCfg.set);
Expand All @@ -147,7 +147,7 @@ qx.Class.define("callbackery.ui.Card", {
if (fieldCfg.set) {
['placeholder','tooltip'].forEach(key => {
if (key in fieldCfg.set){
fieldCfg.set[key] = this.xtr(fieldCfg.set[key]);
fieldCfg.set[key] = this.xtr(fieldCfg.set[key]).toString();
}
});
field.set(fieldCfg.set);
Expand All @@ -160,7 +160,7 @@ qx.Class.define("callbackery.ui.Card", {
if (field.setModelSelection) { // SelectBox
if (fieldCfg.items) {
for (let item of fieldCfg.items) {
field.add(new qx.ui.form.ListItem(this.xtr(item[1]), null, item[0]));
field.add(new qx.ui.form.ListItem(this.xtr(item[1]).toString(), null, item[0]));
}
}
event = 'changeSelection';
Expand Down Expand Up @@ -222,7 +222,7 @@ qx.Class.define("callbackery.ui.Card", {

// add action buttons
this.__actions.forEach(action => {
var btn = this.__createButton(this.xtr(action.label), action.buttonSet.icon);
var btn = this.__createButton(this.xtr(action.label).toString(), action.buttonSet.icon);
btn.addListener('execute', function() {
this.__parentForm.setSelection(this.__dataCache);
this.__buttonMap[action.key].execute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,12 @@ qx.Class.define("callbackery.ui.plugin.Action", {
}
}
if (mbs) {
mmButton.set(mbs);
let mbsFiltered = Object.fromEntries(
['visibility', 'enabled', 'label', 'icon'].filter(key => key in mbs).map(key => [key, mbs[key]])
);
mmButton.set(mbsFiltered);
if (btCfg.key) {
this._menuButtonSetMap[btCfg.key] = mbs;
this._menuButtonSetMap[btCfg.key] = mbsFiltered;
}
}
this.add(button);
Expand Down

0 comments on commit eb4f782

Please sign in to comment.