diff options
Diffstat (limited to 'music_sampler/helpers.py')
-rw-r--r-- | music_sampler/helpers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/music_sampler/helpers.py b/music_sampler/helpers.py index 6acaba4..2249746 100644 --- a/music_sampler/helpers.py +++ b/music_sampler/helpers.py | |||
@@ -123,6 +123,10 @@ def parse_args(): | |||
123 | action=ListDevicesAction, | 123 | action=ListDevicesAction, |
124 | help="List available sound devices" | 124 | help="List available sound devices" |
125 | ) | 125 | ) |
126 | parser.add_argument("--no-focus-warning", | ||
127 | action='store_true', | ||
128 | help="Don't show warning when focus is lost" | ||
129 | ) | ||
126 | parser.add_argument('--', | 130 | parser.add_argument('--', |
127 | dest="args", | 131 | dest="args", |
128 | help="Kivy arguments. All arguments after this are interpreted\ | 132 | help="Kivy arguments. All arguments after this are interpreted\ |
@@ -138,6 +142,7 @@ def parse_args(): | |||
138 | Config.channels = args.channels | 142 | Config.channels = args.channels |
139 | Config.sample_width = args.sample_width | 143 | Config.sample_width = args.sample_width |
140 | Config.builtin_mixing = args.builtin_mixing | 144 | Config.builtin_mixing = args.builtin_mixing |
145 | Config.no_focus_warning = args.no_focus_warning | ||
141 | if args.music_path.endswith("/"): | 146 | if args.music_path.endswith("/"): |
142 | Config.music_path = args.music_path | 147 | Config.music_path = args.music_path |
143 | else: | 148 | else: |