1540 Commits

Author SHA1 Message Date
Micah Lee
9b4bc135ec Tweak language of receive mode options 2018-05-04 17:33:18 -07:00
Micah Lee
e7c3db3b57 Refactor ShareMode and Downloads to remove the Downloads container widget, and make Downloads itself the QScrollArea 2018-05-04 16:57:17 -07:00
Micah Lee
7a71c4376a Remove --shutdown-timeout as an option for onionshare_gui, since GUI options are set in the settings dialog. Also fixed a bug where --local-only and --shutdown-timeout were not compatible in onionshare CLI 2018-05-04 16:43:30 -07:00
Micah Lee
87e8652c18 Fix stay_open regression bug. Before, it was closing automatically even when the setting wasn't set. Also, remove the --stay-open option from the GUI, since GUI settings are set in the settings dialog not cli args 2018-05-04 16:35:32 -07:00
Micah Lee
bc5f299ecd Start building Uploads widget 2018-05-04 16:26:54 -07:00
Micah Lee
5aa1310b26 Refactor ReceiveMode and Downloads, to push more download-related logic into Downloads 2018-05-04 16:06:24 -07:00
Micah Lee
b35bd976d7 Make receive mode info widget show when server is stated, hide when it is not started 2018-05-04 15:53:34 -07:00
Micah Lee
114b9d497b Ignore __pycache__ folders 2018-05-04 15:40:22 -07:00
Micah Lee
cc1baa74c5 Start creating the information widget for receive mode, and refactor for share mode 2018-05-03 09:29:54 -07:00
Micah Lee
95129e3f37 Make clicking the mode switcher buttons properly adjust the size of the window 2018-05-03 09:14:16 -07:00
Micah Lee
51730883ad Fix issue in test that flake discovered 2018-04-30 10:01:23 -07:00
Micah Lee
876e7145d0 Add a few receive mode web tests, to test the receive_allow_receiver_shutdown and receive_public_mode settings 2018-04-29 18:19:00 -07:00
Micah Lee
69b799fe80 Implemented test: test_share_mode_close_after_first_download 2018-04-29 18:00:10 -07:00
Micah Lee
b162104b55 Write a simple Web test for share mode 2018-04-29 17:51:58 -07:00
Micah Lee
6b2109f2da Fix test from adding new settings 2018-04-29 16:47:36 -07:00
Micah Lee
7902a97271 Display the URL without the slug for receive_public_mode in the CLI 2018-04-29 16:44:45 -07:00
Micah Lee
71e2b8aab4 Make the "download page loaded" and "upload page loaded" messages displayed as systray notifications instead of in the status bar, and make it work for Receive Mode 2018-04-29 16:41:05 -07:00
Micah Lee
a51e75bf01 Add support for receive mode's "public mode", which doesn't use a slug. Still needs more testing 2018-04-29 16:33:48 -07:00
Micah Lee
7f320d3535 Display desktop notification to the user when the receiver closes the server, and finish up closing the server 2018-04-29 15:49:18 -07:00
Micah Lee
ae13492749 Make receive_allow_receiver_shutdown setting work 2018-04-29 15:34:11 -07:00
Micah Lee
ed4477f4e0 Merge branch 'develop' into receiver-mode-gui 2018-04-29 15:26:45 -07:00
Micah Lee
e8bd9be2e2 Add two new receive mode settings: receive_allow_receiver_shutdown and receive_public_mode 2018-04-28 21:08:53 -07:00
Miguel Jacq
1df8e4c3f9 Merge pull request #683 from micahflee/receiver-mode
Refactoring, and receiver mode CLI
2018-04-29 09:20:42 +10:00
Micah Lee
8ae729361b Make the quit warning work in receive mode, and use a different warning string 2018-04-28 15:23:57 -07:00
Micah Lee
1cec6d48de Fix a race condition where the URL was sometimes getting copied to the clipboard before it was actually generated, causing a crash 2018-04-28 15:00:23 -07:00
Micah Lee
a09bfdb2cc Generalize the handling of Tor exceptions, more logging in Web 2018-04-28 13:59:36 -07:00
Micah Lee
c939d9b214 Remove a log line that prints each timer_callback that I missed 2018-04-28 13:48:31 -07:00
Micah Lee
9caee6fb0d ReceiveMode was overloading timer_callback instead of timer_callback_custom 2018-04-28 13:41:15 -07:00
Micah Lee
9bb28c743a Work in progress commit, moving the timer_callback logic from ShareMode into Mode so ReceiveMode can use it as well 2018-04-28 12:03:10 -07:00
Micah Lee
7a47570e18 Fixed crash when starting recieve mode server 2018-04-27 23:19:46 -07:00
Micah Lee
0c5886fd7c Change the URL description in receive mode 2018-04-27 23:02:04 -07:00
Micah Lee
7665296189 Connect the right signals and slots for recieve mode, and now the receive mode server starts 2018-04-27 22:32:20 -07:00
Micah Lee
fd397f3b7c Fix server status indicator 2018-04-27 22:20:12 -07:00
Micah Lee
6899dc4942 Make Web's the REQUEST_ constants static attributes 2018-04-26 11:00:59 -07:00
Micah Lee
df603a31d9 Make OnionShareGui use the proper web object 2018-04-26 10:59:38 -07:00
Micah Lee
68cd470baf Instead of creating a Web object and passing it into OnionShareGui, now each mode creates its own separate Web object, instantiated in its own way 2018-04-26 09:30:53 -07:00
Micah Lee
931a582d90 When you start receive mode, it now runs OnionShareGui.set_server_active, to hide the appropriate mode switchers buttons 2018-04-25 23:03:57 -07:00
Micah Lee
a24bb75b66 Split out customization of Mode into _custom() functions, and implement those customizations in ShareMode 2018-04-25 22:59:26 -07:00
Micah Lee
f59fc79939 Move a lot of logic from ShareMode into generic Mode 2018-04-25 22:14:23 -07:00
Micah Lee
def2c9b984 Make ShareMode and ReceiveMode inherit from the same class, Mode 2018-04-25 21:54:28 -07:00
Micah Lee
15d42cb6a4 Add receive mode warning 2018-04-25 20:50:56 -07:00
Micah Lee
5a1d649e88 Forgot to change args passed into ServerStatus 2018-04-25 20:22:29 -07:00
Micah Lee
8d03f83b88 Make different strings for start server button for different modes 2018-04-25 20:14:27 -07:00
Micah Lee
d6810da736 Add ServerStatus to ReceiveMode, and update the server status indicator to have receive statuses too 2018-04-25 09:46:49 -07:00
Micah Lee
1ad2afb859 Bugfix, settings was throwing an error and quitting when Tor was authenticated, not when it was not authenticated 2018-04-25 09:13:05 -07:00
Micah Lee
4d4e9c6800 Bugfix, TorConnectionDialog was getting instatiated with the wrong arguements 2018-04-25 09:08:50 -07:00
Micah Lee
11869a9d0d Move more logic from OnionShareGui into ShareMode, when reloading settings 2018-04-25 08:49:43 -07:00
Micah Lee
74509c5a13 Allow changing downloads_dir from SettingsDialog 2018-04-25 08:43:40 -07:00
Micah Lee
aa372ce585 Make ShareMode and ReceiveMode directories, and move ShareMode modules into its dir 2018-04-24 17:26:54 -07:00
Micah Lee
3b150f0cb4 Merge branch 'receiver-mode' into receiver-mode-gui 2018-04-24 17:22:06 -07:00