import sys

from PyQt5 import QtWidgets

from gui.mainWindow import MainWindow


app = QtWidgets.QApplication(sys.argv)
playerWindow = MainWindow()
playerWindow.show()
app.aboutToQuit.connect(playerWindow.exit)
sys.exit(app.exec_())

import sys

from PyQt5 import QtWidgets

from gui.mainWindow import MainWindow


app = QtWidgets.QApplication(sys.argv)
playerWindow = MainWindow()
playerWindow.show()
app.aboutToQuit.connect(playerWindow.stop)
sys.exit(app.exec_())

Revert "Do not write to the configuration file on each stop."
Revert "Do not write to the configuration file on each stop."

This reverts commit 486d2c3e6062f370c7be499ddef10d816fc3f85c.
