tralph3 / ZeroTier-GUI

A Linux front-end for ZeroTier
GNU General Public License v3.0
211 stars 32 forks source link

Botón para encender o apagar ZeroTier #7

Closed fgarcd03 closed 3 years ago

fgarcd03 commented 3 years ago

Hola, como sugerencia estaría bien poner un botón para activar o desactivar el servicio de ZeroTier, en vez tener que hacer cada vez: systemctl start zerotier-one systemctl stop zerotier-one

tralph3 commented 3 years ago

Hi, I'd rather keep the issues and PRs in english so everyone can understand it. As for the suggestion, you can kinda do it by disabling networks, but I'll probably implement this too. I'll make a quick modification right now so you can have it from the py script if you want, but I'll change the GUI in the future so that it uses ttk's treeview, instead of my custom made one, I didn't realized it even existed when I made it. That will be when it makes it into a new release.

tralph3 commented 3 years ago

Added

fgarcd03 commented 3 years ago

Thank you!, I have tried it and it works. The only thing I would change would be to remove the message at the beginning if you don't have the service activated, as it doesn't make sense if you can activate the service in the programm itself.

tralph3 commented 3 years ago

I don't see why it wouldn't make sense to have a message saying the service isn't active, it's fine to me. But as you might have noticed, I did hack this together in 5 minutes. I'll make more considerations later. So yeah, TODO.

fgarcd03 commented 3 years ago

I know, but the programm won't open if that message comes up.

tralph3 commented 3 years ago

Oh... true. I forgot I added that check lol.