Opened 15 years ago
Closed 15 years ago
#6290 closed patch (fixed)
mythtv-setup mythui conversion and backend auto-stop/start
Reported by: | Owned by: | Nigel | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
- Converts dialogs to mythui.
- Warns user if backend is currently recording/running.
- Offers to stop/start backend if commands are defined (See Note(1)).
- Creates a new class in setupdialog.h/cpp which handles the dialogs and menu instead of all being handled in main - this makes it easier to handle dialog events since the whole thing is wrapped up within a class.
Note(1): auto stop/start backend functionality will only be available if MythbackendStartCommand?? and MythbackendStopCommand?? are defined in the database settings table.
Note(2): mythtv-setup-backendsettings adds two text settings to configuration for MythbackendStartCommand? and MythbackendStopCommand?. Default to null so option to stop/start backend will not be available unless these are specified.
Note: See #4184 for a previous version of the backend start/stop stuff
Attachments (5)
Change History (10)
Changed 15 years ago by
Attachment: | 00-mythtv-setup.patch added |
---|
Changed 15 years ago by
Attachment: | 01-6290-mythtv-setup-backendsettings.patch added |
---|
Refresh against 20301
Changed 15 years ago by
Attachment: | 01-6290-mythtv-setup-backendsettings.2.patch added |
---|
Updated patch for 20683
comment:1 Changed 15 years ago by
Updated patch. This version doesn't modify main.c so much and adds startprompt.cpp/h instead as requested by Nigel.
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Owner: | changed from Isaac Richards to Nigel |
---|---|
Status: | new → assigned |
Can't believe the original patch, #4184, was submitted 20 months ago!
I suspect that ExitPrompt? should be prompting to start the backend (instead of always doing it), and I think this currently needlessly runs BackendStartCommand? even if the backend is already running, but that can be refined later on?
comment:4 Changed 15 years ago by
Wow, many thanks for committing this Nigel[[BR]]
The logic is:
If mythtv-setup was asked to stop the backend it will automatically restart it. If mythtv-setup was asked to leave the backend running it will not restart it. If mythbackend was not running it will not restart it.
It uses the setting AutoRestartBackend? to decide whether or not to restart the backend on exit.
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I thought there was a situation where it tried to needlessly restart, but I can't reproduce. Prompting the user about the restart is still probably a good idea, but time to close this
Main patch