• Leesoo Ahn's avatar
    main-toolbar: Enable the gear menu only when the item is loaded · 354f925d
    Leesoo Ahn authored
    The "app.gear-menu" GAction is enabled and disabled from both
    photos_application_actions_update and the MainToolbar when the mode
    changes. This makes things unpredictable by relying on the order in
    which the callbacks are invoked. Currently the MainToolbar was
    winning and rendering parts of commit 031df27c ineffective.
    
    Instead, this should only be handled in one place -
    photos_application_actions_update. It's a lot more fine-grained and
    informed than the MainToolbar itself. eg., the MainToolbar only knows
    about the mode changing to PREVIEW, but doesn't know whether the item
    has finished loading.
    
    This code was added in commit 7e12154b, and the above rationale
    held true even then. However, back then, the item's loading state was
    not looked at. This is probably why the problem got overlooked.
    
    !94
    354f925d
Name
Last commit
Last update
data Loading commit data...
flatpak Loading commit data...
help Loading commit data...
m4 Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects Loading commit data...
tests Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
ARTISTS Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
git.mk Loading commit data...
glib-tap.mk Loading commit data...
gnome-photos.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
meson_post_install.py Loading commit data...
tap-driver.sh Loading commit data...
tap-test Loading commit data...
template-tap.test.in Loading commit data...
update-authors.sh Loading commit data...