aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/helpers.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-09-19 15:57:26 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-09-19 16:00:43 +0200
commit6dc040edf2f31497d4492c159397c4634037be66 (patch)
tree93da3ca7f67fc3012e3793870c6f6a9b4e96220c /music_sampler/helpers.py
parenta9324e30da6292f53f008f1b827779c7f8e2fcdf (diff)
downloadMusicSampler-6dc040edf2f31497d4492c159397c4634037be66.tar.gz
MusicSampler-6dc040edf2f31497d4492c159397c4634037be66.tar.zst
MusicSampler-6dc040edf2f31497d4492c159397c4634037be66.zip
Add load_all_musics flag and corresponding actions
Diffstat (limited to 'music_sampler/helpers.py')
-rw-r--r--music_sampler/helpers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/music_sampler/helpers.py b/music_sampler/helpers.py
index 9403875..fbd338b 100644
--- a/music_sampler/helpers.py
+++ b/music_sampler/helpers.py
@@ -124,6 +124,13 @@ Configs = {
124 'help_no': _("Don't show warning when focus is lost"), 124 'help_no': _("Don't show warning when focus is lost"),
125 'type': 'boolean' 125 'type': 'boolean'
126 }, 126 },
127 'load_all_musics': {
128 'default': True,
129 'help_yes': _("Load all the musics at launch time (default)"),
130 'help_no': _("Don't load all the musics at launch time (use it if you \
131 have memory problems)"),
132 'type': 'boolean'
133 },
127 'list_devices': { 134 'list_devices': {
128 'help': _("List available sound devices"), 135 'help': _("List available sound devices"),
129 'type': 'action' 136 'type': 'action'
@@ -142,6 +149,7 @@ Configs_order = [
142 'language', 149 'language',
143 'list_devices', 150 'list_devices',
144 'device', 151 'device',
152 'load_all_musics',
145] 153]
146def parse_args(): 154def parse_args():
147 argv = sys.argv[1 :] 155 argv = sys.argv[1 :]