diff -r -u -X diff.exclude myth.15214.1221a/mythplugins/mythmusic/mythmusic/globalsettings.cpp myth.15214.1221b/mythplugins/mythmusic/mythmusic/globalsettings.cpp
|
|
|
319 | 319 | return gc; |
320 | 320 | }; |
321 | 321 | |
| 322 | static HostCheckBox *UseShowMiniplayer() |
| 323 | { |
| 324 | HostCheckBox *gc = new HostCheckBox("ShowMusicMiniplayer"); |
| 325 | gc->setLabel(QObject::tr("Show Miniplayer on song change")); |
| 326 | gc->setValue(true); |
| 327 | gc->setHelpText(QObject::tr("When playing music in background, popup the Miniplayer when the song changes.")); |
| 328 | return gc; |
| 329 | }; |
| 330 | |
322 | 331 | static HostCheckBox *UseShowRatings() |
323 | 332 | { |
324 | 333 | HostCheckBox *gc = new HostCheckBox("MusicShowRatings"); |
… |
… |
|
407 | 416 | return gc; |
408 | 417 | }; |
409 | 418 | |
| 419 | static HostComboBox *ContinuePlayingMusicOnExit() |
| 420 | { |
| 421 | HostComboBox *gc = new HostComboBox("ContinuePlayingMusicOnExit"); |
| 422 | gc->setLabel(QObject::tr("Continue Playing Music On Exit")); |
| 423 | gc->addSelection(QObject::tr("Yes"), "yes"); |
| 424 | gc->addSelection(QObject::tr("No"), "no"); |
| 425 | gc->addSelection(QObject::tr("Ask"), "ask"); |
| 426 | gc->setHelpText(QObject::tr("Continue playing music in the background when exiting MythMusic? Can be " |
| 427 | "either yes, no, or ask (will ask at exit of MythMusic)")); |
| 428 | return gc; |
| 429 | }; |
| 430 | |
| 431 | |
410 | 432 | static HostCheckBox *VisualRandomize() |
411 | 433 | { |
412 | 434 | HostCheckBox *gc = new HostCheckBox("VisualRandomize"); |
… |
… |
|
637 | 659 | playersettings->setLabel(QObject::tr("Playback Settings")); |
638 | 660 | playersettings->addChild(PlayMode()); |
639 | 661 | playersettings->addChild(ResumeMode()); |
| 662 | playersettings->addChild(ContinuePlayingMusicOnExit()); |
640 | 663 | playersettings->addChild(SetSearchMaxResultsReturned()); |
| 664 | playersettings->addChild(UseShowMiniplayer()); |
641 | 665 | playersettings->addChild(UseShowRatings()); |
642 | 666 | playersettings->addChild(UseShowWholeTree()); |
643 | 667 | playersettings->addChild(UseListShuffled()); |
diff -r -u -X diff.exclude myth.15214.1221a/mythplugins/mythmusic/mythmusic/musicplayer.cpp myth.15214.1221b/mythplugins/mythmusic/mythmusic/musicplayer.cpp
|
|
|
438 | 438 | else |
439 | 439 | next(); |
440 | 440 | |
441 | | if (m_canShowPlayer) |
| 441 | int showPlayer = gContext->GetNumSetting("ShowMusicMiniplayer", 1); |
| 442 | |
| 443 | if (m_canShowPlayer && showPlayer) |
442 | 444 | { |
443 | 445 | MiniPlayer *popup = new MiniPlayer(gContext->GetMainWindow(), this); |
444 | 446 | popup->showPlayer(10); |
diff -r -u -X diff.exclude myth.15214.1221a/mythplugins/mythmusic/mythmusic/playbackbox.cpp myth.15214.1221b/mythplugins/mythmusic/mythmusic/playbackbox.cpp
|
|
|
371 | 371 | showEditMetadataDialog(); |
372 | 372 | else if (action == "ESCAPE" && visualizer_status != 2) |
373 | 373 | { |
374 | | if (!gPlayer->isPlaying()) |
| 374 | QString ContinueOnExit = gContext->GetSetting("ContinuePlayingMusicOnExit"); |
| 375 | if (!gPlayer->isPlaying() || ContinueOnExit == "no") |
375 | 376 | { |
376 | 377 | gPlayer->savePosition(); |
377 | 378 | stopAll(); |
378 | 379 | done(kDialogCodeAccepted); |
379 | 380 | } |
380 | | else |
| 381 | else if (ContinueOnExit == "yes") |
| 382 | { |
| 383 | gPlayer->setListener(NULL); |
| 384 | gPlayer->setVisual(NULL); |
| 385 | done(kDialogCodeAccepted); |
| 386 | } |
| 387 | else // ContinueOnExit == "ask" |
381 | 388 | { |
382 | 389 | DialogBox *dialog = new DialogBox(gContext->GetMainWindow(), |
383 | 390 | tr("Exiting Music Player\n" |