Recent

Author Topic: [SOLVED] jMenu - CheckItemCommute always set item to checked  (Read 1131 times)

guaracy

  • New Member
  • *
  • Posts: 13
[SOLVED] jMenu - CheckItemCommute always set item to checked
« on: October 10, 2021, 01:34:46 am »
The logic is inverted and 'break' statement is missing.

code:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/96e00008985c50bcc6b3ac12b89220c04f36615a/android_wizard/smartdesigner/java/jMenu.java#L94

Anyway, i think that the following code is simpler

Code: Java  [Select][+][-]
  1. if (_item.isChecked()) {
  2.     _item.setChecked(false);
  3. } else {
  4.     _item.setChecked(true);
  5. }
  6.  
« Last Edit: October 12, 2021, 07:14:37 pm by guaracy »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1988
Re: jMenu - CheckItemCommute always set item to checked
« Reply #1 on: October 10, 2021, 03:57:43 am »

Fixed!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018