Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ dist
*.zip
octoprint/*
.venv/
.vscode/
.github/instructions/codacy.instructions.md
.claude/
CLAUDE.md
11 changes: 7 additions & 4 deletions octoprint_autoconnectplus/static/js/autoconnectplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ $(function () {
});
}

// Check immediately after the global plugin assets are ready, not only
// when the user opens the settings dialog.
checkPortRetryConflict();

function AutoConnectPlusViewModel(parameters) {
var self = this;

Expand All @@ -61,6 +57,13 @@ $(function () {
self.onSettingsShown = function () {
self.refreshDetected();
};

// Check on login, not only when the user opens the settings dialog.
// Not at DOM-ready: the client's base URL is not set yet then
// (requests go to /undefined/api/...) and the API needs a session.
self.onUserLoggedIn = function () {
checkPortRetryConflict();
};
}

OCTOPRINT_VIEWMODELS.push({
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "OctoPrint-AutoConnectPlus"
version = "0.1.0"
version = "0.1.1"
description = "Automatically reconnects the printer over serial, Moonraker or Bambu connectors"
authors = [
{name = "ajimaru", email = "ajimaru_gdr@pm.me"}
Expand Down
Loading