Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
f65938cc
Commit
f65938cc
authored
Sep 17, 2010
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to the new plugged-in device automatically if we have active sessions
parent
21970068
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
mainwindow.py
blink/mainwindow.py
+11
-10
No files found.
blink/mainwindow.py
View file @
f65938cc
...
...
@@ -565,16 +565,17 @@ class MainWindow(base_class, ui_class):
for
action
in
self
.
alert_device_menu
.
actions
():
self
.
alert_devices_group
.
removeAction
(
action
)
self
.
alert_device_menu
.
removeAction
(
action
)
# TODO replace the following code with a device switch choosing window
old_devices
=
set
(
notification
.
data
.
old_devices
)
new_devices
=
set
(
notification
.
data
.
new_devices
)
added_devices
=
new_devices
-
old_devices
if
added_devices
:
new_device
=
added_devices
.
pop
()
settings
=
SIPSimpleSettings
()
settings
.
audio
.
input_device
=
new_device
settings
.
audio
.
output_device
=
new_device
settings
.
save
()
if
self
.
session_model
.
active_sessions
:
old_devices
=
set
(
notification
.
data
.
old_devices
)
new_devices
=
set
(
notification
.
data
.
new_devices
)
added_devices
=
new_devices
-
old_devices
if
added_devices
:
new_device
=
added_devices
.
pop
()
settings
=
SIPSimpleSettings
()
settings
.
audio
.
input_device
=
new_device
settings
.
audio
.
output_device
=
new_device
settings
.
save
()
# TODO: Add a confirmation window when no active sessions
self
.
load_audio_devices
()
def
_NH_CFGSettingsObjectDidChange
(
self
,
notification
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment