mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-18 21:34:17 -05:00
Fix typos in comments
This commit is contained in:
parent
b473744d26
commit
5cd2fc8ff7
@ -234,7 +234,7 @@ def main(cwd=None):
|
|||||||
# See what the persistent mode was
|
# See what the persistent mode was
|
||||||
mode = mode_settings.get("persistent", "mode")
|
mode = mode_settings.get("persistent", "mode")
|
||||||
|
|
||||||
# In share an website mode, you must supply a list of filenames
|
# In share and website mode, you must supply a list of filenames
|
||||||
if mode == "share" or mode == "website":
|
if mode == "share" or mode == "website":
|
||||||
# Unless you passed in a persistent filename, in which case get the filenames from
|
# Unless you passed in a persistent filename, in which case get the filenames from
|
||||||
# the mode settings
|
# the mode settings
|
||||||
|
@ -25,7 +25,7 @@ import json
|
|||||||
class ModeSettings:
|
class ModeSettings:
|
||||||
"""
|
"""
|
||||||
This stores the settings for a single instance of an OnionShare mode. In CLI there
|
This stores the settings for a single instance of an OnionShare mode. In CLI there
|
||||||
is only one TabSettings, and in the GUI there is a separate TabSettings for each tab
|
is only one ModeSettings, and in the GUI there is a separate ModeSettings for each tab
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, common, filename=None, id=None):
|
def __init__(self, common, filename=None, id=None):
|
||||||
|
@ -61,10 +61,6 @@ class Web:
|
|||||||
REQUEST_INVALID_PASSWORD = 14
|
REQUEST_INVALID_PASSWORD = 14
|
||||||
|
|
||||||
def __init__(self, common, is_gui, mode_settings, mode="share"):
|
def __init__(self, common, is_gui, mode_settings, mode="share"):
|
||||||
"""
|
|
||||||
tab_settings_get and tab_settings_set are getter and setter functions for tab settings
|
|
||||||
"""
|
|
||||||
|
|
||||||
self.common = common
|
self.common = common
|
||||||
self.common.log("Web", "__init__", f"is_gui={is_gui}, mode={mode}")
|
self.common.log("Web", "__init__", f"is_gui={is_gui}, mode={mode}")
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ class TabWidget(QtWidgets.QTabWidget):
|
|||||||
[self.tabBar().tabRect(i).width() for i in range(self.count())]
|
[self.tabBar().tabRect(i).width() for i in range(self.count())]
|
||||||
)
|
)
|
||||||
|
|
||||||
# The current positoin of the new tab button
|
# The current position of the new tab button
|
||||||
pos = self.new_tab_button.pos()
|
pos = self.new_tab_button.pos()
|
||||||
|
|
||||||
# If there are so many tabs it scrolls, move the button to the left of the scroll buttons
|
# If there are so many tabs it scrolls, move the button to the left of the scroll buttons
|
||||||
|
Loading…
x
Reference in New Issue
Block a user