mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-22 06:28:35 +07:00
systemadm: ignore entry activation on empty string
This commit is contained in:
parent
416f4a8457
commit
92aa6f3633
@ -785,8 +785,13 @@ public class MainWindow : Window {
|
||||
}
|
||||
|
||||
public void on_unit_load() {
|
||||
string t = unit_load_entry.get_text();
|
||||
|
||||
if (t == "")
|
||||
return;
|
||||
|
||||
try {
|
||||
var path = manager.load_unit(unit_load_entry.get_text());
|
||||
var path = manager.load_unit(t);
|
||||
|
||||
Unit u = bus.get_object(
|
||||
"org.freedesktop.systemd1",
|
||||
|
Loading…
Reference in New Issue
Block a user