~thrrgilag/squeak

91aec1cf0afea33744bd43c6f650b6b0014876b7 — Morgan McMillian 4 months ago 2aaa986 main
add reload button
1 files changed, 5 insertions(+), 1 deletions(-)

M src/main.py
M src/main.py => src/main.py +5 -1
@@ 175,6 175,10 @@ class Application(Gtk.Application):
        self.main_popover = Gtk.Popover.new_from_model(menu_button, menu)
        self.header.pack_end(menu_button)

        update_button = Gtk.Button.new_from_icon_name('view-refresh-symbolic', 1)
        update_button.connect('clicked', self.on_refresh)
        self.header.pack_end(update_button)

        self.header.show_all()

        self.stack.show_all()


@@ 192,7 196,7 @@ class Application(Gtk.Application):
    def on_main_popover(self, button):
        self.main_popover.popup()

    def on_refresh(self, action, param):
    def on_refresh(self, action, param=None):
        timeline = self.stack.get_visible_child()
        timeline.emit('refresh')