|
|
|
|
@ -275,7 +275,7 @@ void MainWindow::wind_close_ntp(){
|
|
|
|
|
|
|
|
|
|
void MainWindow::stop_ntp(){
|
|
|
|
|
windowsNnpClose->hide();
|
|
|
|
|
string cmd = "[[ systemctl --quiet is-active systemd-timesyncd &>/dev/null ]] && systemctl stop systemd-timesyncd";
|
|
|
|
|
string cmd = "systemd-timesyncd [[ systemctl --quiet is-active systemd-timesyncd &>/dev/null ]] && systemctl stop systemd-timesyncd";
|
|
|
|
|
system(cmd.c_str());
|
|
|
|
|
this->update_time_date();
|
|
|
|
|
|
|
|
|
|
|