mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Always open browser from systray (#2418)
This commit is contained in:
@@ -63,10 +63,8 @@ func systrayInitialize(shutdownHandler ShutdownHandler, faviconProvider FaviconP
|
|||||||
if item == "markers" {
|
if item == "markers" {
|
||||||
item = "scenes/markers"
|
item = "scenes/markers"
|
||||||
}
|
}
|
||||||
if c.GetNoBrowser() {
|
|
||||||
openURLInBrowser(item)
|
openURLInBrowser(item)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}(item)
|
}(item)
|
||||||
}
|
}
|
||||||
systray.AddSeparator()
|
systray.AddSeparator()
|
||||||
@@ -83,9 +81,7 @@ func systrayInitialize(shutdownHandler ShutdownHandler, faviconProvider FaviconP
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-openStashButton.ClickedCh:
|
case <-openStashButton.ClickedCh:
|
||||||
if !c.GetNoBrowser() {
|
|
||||||
openURLInBrowser("")
|
openURLInBrowser("")
|
||||||
}
|
|
||||||
case <-quitStashButton.ClickedCh:
|
case <-quitStashButton.ClickedCh:
|
||||||
systray.Quit()
|
systray.Quit()
|
||||||
shutdownHandler.Shutdown(0)
|
shutdownHandler.Shutdown(0)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
* Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368))
|
* Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368))
|
||||||
|
|
||||||
### 🐛 Bug fixes
|
### 🐛 Bug fixes
|
||||||
|
* Fix Open Stash systray menu item not opening stash when Skip Opening Browser was enabled. ([#2418](https://github.com/stashapp/stash/pull/2418))
|
||||||
* Fix error saving a scene from the tagger when the scene has stash ids. ([#2408](https://github.com/stashapp/stash/pull/2408))
|
* Fix error saving a scene from the tagger when the scene has stash ids. ([#2408](https://github.com/stashapp/stash/pull/2408))
|
||||||
* Perform tag pattern exclusion on stash-box sources. ([#2391](https://github.com/stashapp/stash/pull/2391))
|
* Perform tag pattern exclusion on stash-box sources. ([#2391](https://github.com/stashapp/stash/pull/2391))
|
||||||
* Don't generate jpg thumbnails for animated webp files. ([#2388](https://github.com/stashapp/stash/pull/2388))
|
* Don't generate jpg thumbnails for animated webp files. ([#2388](https://github.com/stashapp/stash/pull/2388))
|
||||||
|
|||||||
Reference in New Issue
Block a user