mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-11 02:45:03 -04:00
Move private_key, hidservauth_string, and password from "persistent" mode settings to "onion" mode settings; and make it so the onion settings are always saved in each tab, even if the tab is not persistent, so if you stop and start a service in the same tab it has the same onion address and password
This commit is contained in:
parent
19e378dff4
commit
76d109747e
6 changed files with 45 additions and 40 deletions
|
@ -207,10 +207,9 @@ class ServerStatus(QtWidgets.QWidget):
|
|||
self.common.settings.load()
|
||||
self.show_url()
|
||||
|
||||
if self.settings.get("persistent", "enabled"):
|
||||
if not self.settings.get("persistent", "password"):
|
||||
self.settings.set("persistent", "password", self.web.password)
|
||||
self.settings.save()
|
||||
if not self.settings.get("onion", "password"):
|
||||
self.settings.set("onion", "password", self.web.password)
|
||||
self.settings.save()
|
||||
|
||||
if self.settings.get("general", "autostop_timer"):
|
||||
self.server_button.setToolTip(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue