they're both the same, however if i was to try and seperate the two i would say that "with the idea" is expressing your concern for leaving your friend/girlfriend (slightly protective and worried). The second one is just more direct and less information is provided to the listener, it would be more passive/upfront.