Run gtk_main only if it's __main__,
This commit is contained in:
parent
cdf7583d39
commit
6037caa691
@ -363,10 +363,10 @@ def main():
|
|||||||
presence_window.show()
|
presence_window.show()
|
||||||
|
|
||||||
console.set_parent_window(activity_container.window)
|
console.set_parent_window(activity_container.window)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
try:
|
try:
|
||||||
gtk.main()
|
gtk.main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user