"hidden" parameter not working for me....

Started by Jingo, September 22, 2019, 05:44:24 PM

Previous topic - Next topic

Jingo

Hi Mario - I just tried to use the "hidden" attribute in an app.json for the CodeTester App that I just shared...  but it is not working.

{
  "type": "app",
  "id": "5E9966B3-3AC9-4DC9-8D78-E344B1144",
"hidden": "true",
  "version": "1.0",
  "author": [
    "Jingothecat"
  ],
  "name": {
    "": "Temporary Tester"
  },
  "description": {
    "": "this is a temporary app that is used for testing code snippets in Imatch"
....
....


Am I setting the value incorrectly because the app does not start hidden unless I manually set it as such in the app manager... Thx - Andy.

Mario

Not sure what you mean.

The hidden option allows you to hide an app in the task manager and from the drop-down menu in App panels.
Its not terribly useful for normal apps.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Jingo

Quote from: Mario on September 22, 2019, 06:49:12 PM
Not sure what you mean.

The hidden option allows you to hide an app in the task manager and from the drop-down menu in App panels.
Its not terribly useful for normal apps.

Yes... I set the Hidden param because I don't want it to appear in the app manager panel... but that is not working for me. 

Mario

How strange.

Just tried it with the VarToy app.
The app icon vanished from App Manager after a few seconds.
So it works in principle.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Jingo

Quote from: Mario on September 22, 2019, 08:32:30 PM
How strange.

Just tried it with the VarToy app.
The app icon vanished from App Manager after a few seconds.
So it works in principle.

Ok. I'll try it on my other PC when I get a chance... perhaps just a glitch on my work system.

thrinn

Just from a quick glance: Shouldn't it be
"hidden" : true
instead of
"hidden" : "true"
Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

#6
This is a boolean parameter.
What are you referring to? A glitch in the docs? Sample app? Comments in IMatchLib.js? ...

Please understand that I handle 50 emails and community postings a day. I cannot always figure out the "context" or figure out the details.
It's almost midnight, I'm tired and I have still 10 support emails to reply to...

"hidden": true,

works alright here. Simple.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Jingo

Thorsten is correct... I did it wrong (I put "true" in quotes).... it should just be true (the docs actually don't tell you what value to put in.. just that it needs to be true so I put it in quotes like all the other variables are).  Thx Thorsten!!

thrinn

Hi Mario,
sorry, I should have been a bit more comprehensive. Was a bit in a hurry myself. I was not hinting at any kind of bug or glitch, just suggesting to Andy a possible reason why the Hidden App flag was not working for him. Addressing  him directly would have been better, I suppose.
Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

I've checked the docs and they are correct.

It reads: hidden: if this value is specified and true, t...

The Boolean value true is not the same as a string with the content "true".
JSON does not do "trueish", like JavaScript does.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook