mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-08 22:32:44 -04:00
When disabling persistence, or closing a persistent tab, delete the mode settings file for that tab
This commit is contained in:
parent
7819a894be
commit
1bca467ce3
3 changed files with 16 additions and 3 deletions
|
@ -202,6 +202,10 @@ class ModeSettingsWidget(QtWidgets.QWidget):
|
|||
self.tab.tab_id, self.persistent_checkbox.isChecked()
|
||||
)
|
||||
|
||||
# If disabling persistence, delete the file from disk
|
||||
if not self.persistent_checkbox.isChecked():
|
||||
self.settings.delete()
|
||||
|
||||
def public_checkbox_clicked(self):
|
||||
self.settings.set("general", "public", self.public_checkbox.isChecked())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue