Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is disabling a program a bad practice?

Featured Replies

Posted

Hi,

 

Is this a bad practice to play with the program enable/disable?

 

Sometime, I would like the status event to be ignored. Instead of using variable, I was wondering if I can simply disable/re-enable programs like in the example below. Or if I should avoid it for some reason.

 

Example:

PROGRAM-1
If
       Control 'RC / Cuisine' is switched Fast On

Then
       Wait  5 minutes 
       Disable Program 'PROGRAM-2'
       Set 'RC / Cuisine' Off
       Enable Program 'PROGRAM-2'


PROGRAM-2
If
       Status  'RC / Cuisine' is Off

Then
       ...
       ...

 

Actually, my concern is that if this setting gets written to nvram, then I probably want to avoid it as I don't want to keep writing to it.

 

Thanks,

 

Benoit.

Damn you guys!

 

This is not something I have ever even thought about. Now there goes my Sunday, changing all my enable/disable operations to looking a variables or flag programs.

 

Thanks for the topic. Always learning.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.