Skip to content

Commit

Permalink
send clipboard content again if no device was connected
Browse files Browse the repository at this point in the history
  • Loading branch information
PRosenb committed Mar 9, 2018
1 parent 2e30f65 commit c3d6680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The app will be published on Google Play and needs to be built yourself until th
- This will result in a folder containing all the files for the library. The folder name includes the version: **AdbClipboard-x.y.z**

#### Mac/Linux ####
- Copy the file adbclipboard.py to e.g. your root directory:
- Copy the file adbclipboard.py to e.g. your home directory:
```bash
cp ./adbclipboard.py ~/
```
Expand Down
2 changes: 2 additions & 0 deletions adbclipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def syncWithDevices(clipboardHandler):
# no devices connected, sleep longer
print("No device connected, sleep for {0}s"
.format(noConnectedDeviceDelay))
previousClipboardString = None
time.sleep(noConnectedDeviceDelay)
else:
clipboardString = clipboardHandler.readClipboard()
Expand Down Expand Up @@ -184,6 +185,7 @@ def syncWithDevices(clipboardHandler):
if hasDeviceWithAdbClipboardInstalled is False:
print("No device with installed AdbClipboard, sleep for {0}s"
.format(noConnectedDeviceDelay))
previousClipboardString = None
time.sleep(noConnectedDeviceDelay)
elif hasUpdateFromDevice is False:
time.sleep(connectedDevicesDelay)
Expand Down

0 comments on commit c3d6680

Please sign in to comment.