Commit ea1a1344 authored by Roman Alifanov's avatar Roman Alifanov

an attempt to fix random crashes

parent 2644059d
from gi.repository import GLib
import time import time
import traceback import traceback
from .module import Module from .module import Module
...@@ -19,9 +21,9 @@ def init_settings_stack(stack, listbox, split_view): ...@@ -19,9 +21,9 @@ def init_settings_stack(stack, listbox, split_view):
if stack.get_pages(): if stack.get_pages():
print("Clear pages...") print("Clear pages...")
listbox.remove_all() GLib.idle_add(listbox.remove_all)
for page in stack.get_pages(): for page in stack.get_pages():
stack.remove(page) GLib.idle_add(stack.remove, page)
else: else:
print("First init...") print("First init...")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment