File tree Expand file tree Collapse file tree
gnome-extensions/extension/features/GIF Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export const GifSearchService = GObject.registerClass(
5050 * @returns {Promise<boolean> } True if successful.
5151 */
5252 async applyExternalSearch ( query ) {
53- const searchWidget = this . _searchComponent ? .getWidget ( ) ;
53+ const searchWidget = this . _searchComponent . getWidget ( ) ;
5454 if ( ! searchWidget ?. visible ) return false ;
5555
5656 const normalizedQuery = typeof query === 'string' ? query . trim ( ) : '' ;
@@ -69,7 +69,7 @@ export const GifSearchService = GObject.registerClass(
6969 * @returns {boolean } True if search was cleared.
7070 */
7171 clearExternalSearch ( ) {
72- const searchWidget = this . _searchComponent ? .getWidget ( ) ;
72+ const searchWidget = this . _searchComponent . getWidget ( ) ;
7373 if ( ! searchWidget ?. visible ) return false ;
7474
7575 this . clearSearch ( ) ;
@@ -81,7 +81,7 @@ export const GifSearchService = GObject.registerClass(
8181 */
8282 onMenuClosed ( ) {
8383 if ( this . isActive ( ) ) {
84- this . _searchComponent ? .clearSearch ( ) ;
84+ this . _searchComponent . clearSearch ( ) ;
8585 }
8686 }
8787
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export const GifContentView = GObject.registerClass(
144144 * @private
145145 */
146146 _getGridMaxColumnsSetting ( ) {
147- if ( ! this . _settings ? .get_boolean ( GifSettings . GRID_LIMIT_COLUMNS_KEY ) ) return null ;
147+ if ( ! this . _settings . get_boolean ( GifSettings . GRID_LIMIT_COLUMNS_KEY ) ) return null ;
148148 const maxColumns = this . _settings . get_int ( GifSettings . GRID_MAX_COLUMNS_KEY ) ;
149149 return maxColumns > 0 ? maxColumns : null ;
150150 }
@@ -167,7 +167,7 @@ export const GifContentView = GObject.registerClass(
167167 */
168168 _applyGridColumnLimit ( ) {
169169 const maxColumns = this . _getGridMaxColumnsSetting ( ) ;
170- this . _masonryView ? .setMaxColumns ?. ( maxColumns ) ;
170+ this . _masonryView . setMaxColumns ( maxColumns ) ;
171171 }
172172
173173 // ========================================================================
You can’t perform that action at this time.
0 commit comments