save quick backup's folder if backup aborted, if needed
This commit is contained in:
parent
0a47474e0e
commit
ebe56a3f05
@ -1701,8 +1701,8 @@ class QuickBackup(ManagedWindow): # TODO move this class into its own module
|
|||||||
label.set_halign(Gtk.Align.START)
|
label.set_halign(Gtk.Align.START)
|
||||||
hbox.pack_start(label, False, True, 0)
|
hbox.pack_start(label, False, True, 0)
|
||||||
path_entry = Gtk.Entry()
|
path_entry = Gtk.Entry()
|
||||||
text = config.get('paths.quick-backup-directory')
|
dirtext = config.get('paths.quick-backup-directory')
|
||||||
path_entry.set_text(text)
|
path_entry.set_text(dirtext)
|
||||||
hbox.pack_start(path_entry, True, True, 0)
|
hbox.pack_start(path_entry, True, True, 0)
|
||||||
file_entry = Gtk.Entry()
|
file_entry = Gtk.Entry()
|
||||||
button = Gtk.Button()
|
button = Gtk.Button()
|
||||||
@ -1784,6 +1784,9 @@ class QuickBackup(ManagedWindow): # TODO move this class into its own module
|
|||||||
parent=self.window)
|
parent=self.window)
|
||||||
yes_no = question.run()
|
yes_no = question.run()
|
||||||
if not yes_no:
|
if not yes_no:
|
||||||
|
current_dir = path_entry.get_text()
|
||||||
|
if current_dir != dirtext:
|
||||||
|
config.set('paths.quick-backup-directory', current_dir)
|
||||||
self.close()
|
self.close()
|
||||||
return
|
return
|
||||||
position = self.window.get_position() # crock
|
position = self.window.get_position() # crock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user