braus icon indicating copy to clipboard operation
braus copied to clipboard

"Set as default" re-appears on each braus start

Open cweiske opened this issue 5 years ago • 2 comments

Braus starts and asks "Set Braus as your default browser". Then I click "Set as Default".

Upon the "Braus" start, it asks me again.

This happens on Ubuntu 18.04 with Gnome Shell 3.28.4.

cweiske avatar Nov 24 '20 08:11 cweiske

I guess the problem is

if app.settings.get_boolean("ask-default") == True or (Gio.AppInfo.get_default_for_type(app.content_types[1], True).get_id() != Gio.Application.get_application_id(app) + '.desktop') :

It always shows the "make me default" bar even if it is already is default. The "or" should be a "and".

cweiske avatar Nov 24 '20 13:11 cweiske

Thank you! I'll test and merge this some time this week.

properlypurple avatar Nov 26 '20 12:11 properlypurple