Исправлен help

pull/46/head
Igor Belitskiy 3 years ago
parent e3c225dbf1
commit d425770836

@ -17,13 +17,13 @@ int main(int argc, char* argv[]) {
if (argc>1){
str_argv = argv[1];
}
if ((str_argv.find("--lock")!=std::string::npos || argc==1)){
if (str_argv.find("-")!=std::string::npos){
int len_argv = 1;
auto app = Gtk::Application::create(len_argv, argv, "org.gtkmm.example.plug");
auto builder = Gtk::Builder::create_from_file(path_glade + "ubl-settings-datetime.glade");
for (int i=0; i<argc; i++){
str_argv = argv[i];
if (str_argv=="--help"){
if (str_argv=="--help" || str_argv=="-h"){
help();
return 1;
}
@ -47,7 +47,7 @@ int main(int argc, char* argv[]) {
delete wnd;
return r;
}
else{
else if ((str_argv.find("-s")!=std::string::npos) || (str_argv.find("--socket-id")!=std::string::npos)){
auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example.plug");
auto builder = Gtk::Builder::create_from_file(path_glade + "ubl-settings-datetime.glade");
Glib::init();

@ -482,7 +482,6 @@ void MainWindow::enry_dhcp_mess(){
}
}
else{
cout << 2222 << endl;
cbxSynchronizeNtpGlob->set_active(false);
cbDhcp->set_sensitive(false);
txtNtpServer->set_sensitive(false);

Loading…
Cancel
Save