Commit 1636f22e authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix pinned pages

parent fc1559b1
Pipeline #71168 passed with stage
in 12 minutes and 3 seconds
......@@ -538,6 +538,7 @@ class Application(Gtk.Application):
"""
size = (800, 600)
maximized = False
i = 0
pinned = []
try:
pinned = load(
......@@ -551,7 +552,6 @@ class Application(Gtk.Application):
window.container.sites_manager.set_initial_sort(
window_state["sites"])
items = []
i = 0
for (uri, title, atime,
ephemeral, state) in window_state["states"]:
if uri in pinned:
......@@ -581,9 +581,11 @@ class Application(Gtk.Application):
else:
window = self.get_new_window(size, maximized)
for uri in pinned:
loading_type = wanted_loading_type(i)
window.container.add_webview(uri,
LoadingType.BACKGROUND,
loading_type,
False)
i += 1
# Really setup pinned
try:
self.__pinned = load(
......
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