Minor enhancement for RM

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
rickety
Posts: 101
Joined: Sun Aug 03, 2003 5:09 pm

Minor enhancement for RM

Post by rickety »

When I start RM then use it to load a KM file, it first asks whether I want to save its current upgrade. Can you incorporate an option to realise that no upgrade has yet been loaded and therefore there is no need to ask whether to save an upgrade?

I know that I can navigate with explorer to my km file and then a double click will start it with the km loaded, but that's not usually the way I start the program.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Actually, this is not a minor change. Cause what you really want to know is whether or not there's been any changes since the last load or save. I looked into this before, and it isn't as simple as you would think.

You'll just have to set Options->Prompt to Save to "On Exit" or "Never"
rickety
Posts: 101
Joined: Sun Aug 03, 2003 5:09 pm

Post by rickety »

The way I try to do this with my programs and scripts is that when there is any input I set a "dirty flag". I don't really mind if someone overwrites a field with exactly the same data, we just want to know whether they have done anything before they do "New" or "Open".

If no actions that might change the content have occured, when the user does a "New" or "Open" the dirty flag is off so I don't ask whether a save should be done.

I can understand that there are higher priorities, and it's difficult in some programming environments to be aware whether a field has changed. I have added this explanation in case there might be an easier way than comparing file contents.

Best regards
Post Reply