🚸 Re-enable connect dialog w/ no serial ports

Apparently disabling it if no serial ports are currently
known to the client breaks certain workflows for people.

So this is a short-term solution to fix things for them, while
technically non-sensical (why offer to connect if we don't see
anything to connect to?) So in 1.9.0 this should rather be
solved by adding some form of platform agnostic (!) auto-refresh,
either regular polling while no port is detected, or even
watchdog enabled event based refresh. See #4473.
This commit is contained in:
Gina Häußge committed 2022-03-22 12:07:59 +01:00
1 parent 8c9536f323
commit 6728a17448
1 file changed
+2 -1
@@ -40,7 +40,8 @@ $(function () {
self.isLoading = ko.observable(undefined);
self.enableConnect = ko.pureComputed(function () {
return self.enablePort() || !self.isErrorOrClosed();
//return self.enablePort() || !self.isErrorOrClosed();
return true; // enable always for now, until we have an auto refresh in 1.9.0
});
self.buttonText = ko.pureComputed(function () {