kev-cao / rofi-dictionary

A Python script that uses the Oxford Dictionary API to look up definitions using Rofi.
MIT License
12 stars 1 forks source link

Program doesn't quit properly #2

Closed madprops closed 2 years ago

madprops commented 2 years ago

I had to add the following in display_menu:

if result == "":
    self.state = -1
    return -1

Else the process would continue to exist when quitting using escape and I think clicking outside.

madprops commented 2 years ago

Actually I don't see this problem anymore, maybe I had changed something.