Fixed offline-mode sync warning displaying at inappropriate times

Former-commit-id: 37c0fe00ec30a903ec7ba40525f01a2963b24d72
Former-commit-id: e6cea4d212e6f9b231dc0d0743b667b9f2eb376c
This commit is contained in:
2023-09-24 19:35:48 -04:00
parent 397ad7d409
commit db05e9b05e
+1 -1
View File
@@ -720,7 +720,7 @@ if __name__ == "__main__":
sync()
elif (arg_count > 0 and arguments[0] == 'sync') or (arg_count > 1 and arguments[1] == 'shear'):
sync('\n')
elif offline_mode_enabled:
elif arg_count > 0 and arguments[0] == 'sync' and offline_mode_enabled:
print("\n\u001b[38;5;9mwarning: sshyp is currently configured in offline mode - ssh synchronization is "
"disabled\u001b[0m\n")