MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / quit

Method quit

src/main.cpp:248–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void Main::quit() {
249 // TODO: save network path
250 config->getOption(OPT_LAST_PATH)->setString(filer->getPath());
251 config->save();
252 exit = true;
253 if (player->getMpv()->isStopped()) {
254 running = false;
255 } else {
256 player->stop();
257 }
258}
259
260Player *Main::getPlayer() {
261 return player;

Callers 2

on_applet_hookFunction · 0.80
onOptionSelectionMethod · 0.80

Calls 6

setStringMethod · 0.80
getPathMethod · 0.80
isStoppedMethod · 0.80
getMpvMethod · 0.80
saveMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected