mirror of
https://github.com/Guake/guake.git
synced 2025-10-26 11:27:13 +00:00
feat: Remove underlines from quick-open targets when quick-open disabled
Fixes Guake/guake#2225
This commit is contained in:
parent
0a99c9c7d6
commit
bb76160dc1
@ -74,7 +74,7 @@ building the distribution packages.
|
||||
|
||||
Same goes for the `ChangeLog` file.
|
||||
|
||||
Versionning
|
||||
Versioning
|
||||
-----------
|
||||
|
||||
Versioning is automatically done using git tags. When a semver tag is pushed, a new version
|
||||
|
||||
@ -101,7 +101,10 @@ class GuakeTerminal(Vte.Terminal):
|
||||
super().__init__()
|
||||
self.guake = guake
|
||||
self.configure_terminal()
|
||||
self.add_matches()
|
||||
|
||||
if self.guake.settings.general.get_boolean("quick-open-enable"):
|
||||
self.add_matches()
|
||||
|
||||
self.handler_ids = []
|
||||
self.handler_ids.append(self.connect("button-press-event", self.button_press))
|
||||
self.connect("child-exited", self.on_child_exited) # Call on_child_exited, don't remove it
|
||||
@ -347,13 +350,15 @@ class GuakeTerminal(Vte.Terminal):
|
||||
handle the matched resource uri.
|
||||
"""
|
||||
self.matched_value = ""
|
||||
if (Vte.MAJOR_VERSION, Vte.MINOR_VERSION) >= (0, 46):
|
||||
matched_string = self.match_check_event(event)
|
||||
else:
|
||||
matched_string = self.match_check(
|
||||
int(event.x / self.get_char_width()),
|
||||
int(event.y / self.get_char_height()),
|
||||
)
|
||||
|
||||
if self.guake.settings.general.get_boolean("quick-open-enable"):
|
||||
if (Vte.MAJOR_VERSION, Vte.MINOR_VERSION) >= (0, 46):
|
||||
matched_string = self.match_check_event(event)
|
||||
else:
|
||||
matched_string = self.match_check(
|
||||
int(event.x / self.get_char_width()),
|
||||
int(event.y / self.get_char_height()),
|
||||
)
|
||||
|
||||
self.found_link = None
|
||||
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
release_summary: >
|
||||
Added code to remove underlines from quick-open targets when quick-open disabled
|
||||
Loading…
Reference in New Issue
Block a user