ref: navigation buttons

This commit is contained in:
leukipp
2025-07-09 16:11:28 +02:00
parent cab2052477
commit e64f092f6c
4 changed files with 26 additions and 9 deletions
+3
View File
@@ -413,6 +413,9 @@ const updateKeyboard = () => {
* Initializes the page number and handles the execute logic.
*/
const initPageNumber = () => {
if (WEBVIEW.viewUrls.length < 3) {
return;
}
const root = `${INTEGRATION.root}/page_number`;
const config = {
name: "Page Number",
+3 -3
View File
@@ -183,10 +183,10 @@ const updateNavigation = () => {
const defaultUrl = WEBVIEW.viewUrls[WEBVIEW.viewActive];
const currentUrl = view.webContents.getURL();
// Disable pager button
WEBVIEW.navigation.webContents.send("button-disabled", {
// Hide pager button
WEBVIEW.navigation.webContents.send("button-hidden", {
id: "pager",
disabled: WEBVIEW.views.length < 3,
hidden: WEBVIEW.viewUrls.length < 3,
});
// Update url text