Don't do anything if there's no console
This commit is contained in:
parent
f1d6f96dc4
commit
212b9a49da
@ -106,6 +106,7 @@ class ConsoleWindow(gtk.Window):
|
|||||||
def __debug_toggled_cb(self, button):
|
def __debug_toggled_cb(self, button):
|
||||||
if not self._ignore_toggle:
|
if not self._ignore_toggle:
|
||||||
console = self._nb.get_nth_page(self._nb.get_current_page())
|
console = self._nb.get_nth_page(self._nb.get_current_page())
|
||||||
|
if console:
|
||||||
console.set_show_debug(button.get_active())
|
console.set_show_debug(button.get_active())
|
||||||
|
|
||||||
def __page_changed_cb(self, notebook, page, page_num):
|
def __page_changed_cb(self, notebook, page, page_num):
|
||||||
|
Loading…
Reference in New Issue
Block a user