small bugfixes
This commit is contained in:
parent
a32a856041
commit
8456661be5
@ -4,6 +4,7 @@ from syncplay.client import SyncplayClientManager
|
|||||||
from syncplay.players import mpc
|
from syncplay.players import mpc
|
||||||
from syncplay.ConfigurationGetter import MPCConfigurationGetter
|
from syncplay.ConfigurationGetter import MPCConfigurationGetter
|
||||||
|
|
||||||
|
|
||||||
class SyncplayMPC(SyncplayClient):
|
class SyncplayMPC(SyncplayClient):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
SyncplayClient.__init__(self)
|
SyncplayClient.__init__(self)
|
||||||
@ -15,12 +16,10 @@ class SyncplayMPC(SyncplayClient):
|
|||||||
def _prepareArguments(self):
|
def _prepareArguments(self):
|
||||||
self.argsGetter = MPCConfigurationGetter()
|
self.argsGetter = MPCConfigurationGetter()
|
||||||
self.args = self.argsGetter.getConfiguration()
|
self.args = self.argsGetter.getConfiguration()
|
||||||
self.argsGetter.saveValuesIntoConfigFile()
|
|
||||||
|
|
||||||
def _promptForMissingArguments(self):
|
def _promptForMissingArguments(self):
|
||||||
SyncplayClient._promptForMissingArguments(self)
|
SyncplayClient._promptForMissingArguments(self)
|
||||||
#if(self.args.no_gui)
|
if (self.args.mpc_path == None):
|
||||||
while (self.args.mpc_path == None):
|
|
||||||
self.args.mpc_path = self.interface.promptFor(promptName = "Path to mpc-hc.exe", message = "You must supply path to mpc on the first run, it's easier through command line arguments.")
|
self.args.mpc_path = self.interface.promptFor(promptName = "Path to mpc-hc.exe", message = "You must supply path to mpc on the first run, it's easier through command line arguments.")
|
||||||
|
|
||||||
|
|
||||||
@ -6,5 +6,6 @@ def getUi(graphical = True):
|
|||||||
ui = GraphicalUI()
|
ui = GraphicalUI()
|
||||||
else:
|
else:
|
||||||
ui = ConsoleUI()
|
ui = ConsoleUI()
|
||||||
|
ui.setDaemon(True)
|
||||||
ui.start()
|
ui.start()
|
||||||
return ui
|
return ui
|
||||||
@ -33,7 +33,7 @@ class ConsoleUI(threading.Thread):
|
|||||||
elif(self._syncplayClient):
|
elif(self._syncplayClient):
|
||||||
self._executeCommand(data)
|
self._executeCommand(data)
|
||||||
except:
|
except:
|
||||||
raise
|
pass
|
||||||
|
|
||||||
def promptFor(self, promptName = ">", message = ""):
|
def promptFor(self, promptName = ">", message = ""):
|
||||||
print(message)
|
print(message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user