[gnome-maps/wip/mlundblad/remove-contacts: 4/17] placeButtons: Removing special case for contacts
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/remove-contacts: 4/17] placeButtons: Removing special case for contacts
- Date: Thu, 23 Jun 2022 21:15:11 +0000 (UTC)
commit 95d20c0649eb927f331dcf9b3a4e0f480571cf36
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Jun 22 22:16:29 2022 +0200
placeButtons: Removing special case for contacts
src/placeButtons.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/placeButtons.js b/src/placeButtons.js
index ad3e597f..05aac8bf 100644
--- a/src/placeButtons.js
+++ b/src/placeButtons.js
@@ -24,7 +24,6 @@ import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk';
import {Application} from './application.js';
-import {ContactPlace} from './contactPlace.js';
import {OSMAccountDialog} from './osmAccountDialog.js';
import {OSMEditDialog} from './osmEditDialog.js';
import * as OSMUtils from './osmUtils.js';
@@ -65,8 +64,7 @@ export class PlaceButtons extends Gtk.Box {
this._updateFavoriteButton(!!this._place.store);
- this._editButton.visible = (!(this._place instanceof ContactPlace) &&
- this._place.osm_id);
+ this._editButton.visible = !!this._place.osm_id;
this._routeButton.visible = !this._place.isCurrentLocation;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]