Skip to content

Commit

Permalink
Move populate_from_profile() to right place (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored Oct 22, 2024
1 parent 29fa83c commit ba2c0fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vorta/views/schedule_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ def __init__(self, parent=None):
'fixed': self.scheduleFixedRadio,
}

self.populate_from_profile()

self.scheduleIntervalUnit.addItem(self.tr('Minutes'), 'minutes')
self.scheduleIntervalUnit.addItem(self.tr('Hours'), 'hours')
self.scheduleIntervalUnit.addItem(self.tr('Days'), 'days')
Expand Down Expand Up @@ -64,6 +62,7 @@ def __init__(self, parent=None):
)

self.app.scheduler.schedule_changed.connect(lambda pid: self.draw_next_scheduled_backup())
self.populate_from_profile()

def on_scheduler_change(self, _):
profile = self.profile()
Expand Down

0 comments on commit ba2c0fd

Please sign in to comment.