1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-21 23:33:13 +00:00

Move populate_from_profile() to right place (#2103)

This commit is contained in:
Manu 2024-10-22 16:20:36 +01:00 committed by GitHub
parent 29fa83ceb5
commit ba2c0fd7dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')
@ -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()