Skip to content

Commit bea5b5c

Browse files
committed
New: Option to change labels from app bar
1 parent 22f9066 commit bea5b5c

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## v1.6.2 (dd-mm-yyyy)
88

9+
##### 🚀 New Features
10+
11+
- Option to change labels from app bar
12+
913
##### 🐛 Bug Fixes
1014

1115
- Prevent app freeze when relative path receives undefined value [`2d9cca5`](https://github.com/ollm/OpenComic/commit/2d9cca5581fac5f8818bf5b0f008ae68b50d31d5)
12-
- Error on start directly in last reading
16+
- Error on start directly in last reading [`9c20ba0`](https://github.com/ollm/OpenComic/commit/9c20ba00b1ed69ea5897ef01f11898ce4300d4e7)
1317

1418
## [v1.6.1](https://github.com/ollm/OpenComic/releases/tag/v1.6.1) (26-08-2025)
1519

‎scripts/opencomic.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ function generateAppMenu(force = false)
812812
{label: language.menu.file.addFile, click: function(){addComic()}},
813813
{label: language.menu.file.addFolder, click: function(){addComic(true)}},
814814
{type: 'separator'},
815+
{label: language.global.labels, enabled: currentPath, click: function(){reading.contextMenu.labels()}},
815816
{label: pathIsFolder ? language.global.contextMenu.openFolderLocation : language.global.contextMenu.openFileLocation, enabled: currentPath, click: function(){reading.contextMenu.openFileLocation()}},
816817
{label: language.global.contextMenu.aboutFile, enabled: currentPath, click: function(){reading.contextMenu.aboutFile()}},
817818
{type: 'separator'},

‎scripts/reading/context-menu.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ function openFileLocation()
4040
function aboutFile()
4141
{
4242
const vars = getVars();
43-
4443
dom.fileInfo.show(vars.pathIsFolder ? vars.currentPath : fileManager.lastCompressedFile(vars.currentPath));
4544
}
4645

46+
function labels()
47+
{
48+
const vars = getVars();
49+
dom.labels.setLabels(vars.pathIsFolder ? vars.currentPath : fileManager.lastCompressedFile(vars.currentPath));
50+
}
51+
4752
function getCurrentImage()
4853
{
4954
const currentIndex = reading.currentIndex() - 1;
@@ -358,6 +363,7 @@ module.exports = {
358363
show: show,
359364
openFileLocation: openFileLocation,
360365
aboutFile: aboutFile,
366+
labels: labels,
361367
setAsPoster: setAsPoster,
362368
setAsPosterFolders: setAsPosterFolders,
363369
saveImage: saveImage,

0 commit comments

Comments
 (0)