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