- 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,7 +1231,9 @@ class MainSettingsWindow():
|
||||||
def text_monitor_changed(self, button):
|
def text_monitor_changed(self, button):
|
||||||
screen = self.window.get_screen()
|
screen = self.window.get_screen()
|
||||||
plug = "Any"
|
plug = "Any"
|
||||||
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
monitor = None
|
||||||
|
if(button.get_active()>0):
|
||||||
|
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
||||||
if monitor:
|
if monitor:
|
||||||
plug = monitor
|
plug = monitor
|
||||||
self.config_set("text", "monitor", plug)
|
self.config_set("text", "monitor", plug)
|
||||||
|
|
@ -1272,7 +1274,9 @@ class MainSettingsWindow():
|
||||||
def notification_monitor_changed(self, button):
|
def notification_monitor_changed(self, button):
|
||||||
screen = self.window.get_screen()
|
screen = self.window.get_screen()
|
||||||
plug = "Any"
|
plug = "Any"
|
||||||
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
monitor = None
|
||||||
|
if(button.get_active()>0):
|
||||||
|
monitor = screen.get_monitor_plug_name(button.get_active()-1)
|
||||||
if monitor:
|
if monitor:
|
||||||
plug = monitor
|
plug = monitor
|
||||||
self.config_set("notification", "monitor", plug)
|
self.config_set("notification", "monitor", plug)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue