- Fix warnings on 'any' monitor choice
This commit is contained in:
parent
17a9bc5f02
commit
8e459fb6a6
1 changed files with 6 additions and 2 deletions
|
|
@ -1231,6 +1231,8 @@ class MainSettingsWindow():
|
|||
def text_monitor_changed(self, button):
|
||||
screen = self.window.get_screen()
|
||||
plug = "Any"
|
||||
monitor = None
|
||||
if(button.get_active()>0):
|
||||
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
||||
if monitor:
|
||||
plug = monitor
|
||||
|
|
@ -1272,6 +1274,8 @@ class MainSettingsWindow():
|
|||
def notification_monitor_changed(self, button):
|
||||
screen = self.window.get_screen()
|
||||
plug = "Any"
|
||||
monitor = None
|
||||
if(button.get_active()>0):
|
||||
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
||||
if monitor:
|
||||
plug = monitor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue