Skip to content

Commit

Permalink
refactor: move window picker out of the preferences directory
Browse files Browse the repository at this point in the history
I prefer having it there since it's only used inside of preferences, but
I was advised to move it to a different place in EGO review, since it's
run inside of the extension process.
  • Loading branch information
flexagoon committed Sep 26, 2024
1 parent 63d14d7 commit f2fbebf
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import {
shouldEnableEffect,
windowScaleFactor,
} from './manager/utils.js';
import {WindowPicker} from './preferences/window_picker/service.js';
import {
disableBackgroundMenuItem,
enableBackgroundMenuItem,
} from './utils/background_menu.js';
import {OVERVIEW_SHADOW_ACTOR, SHADOW_PADDING} from './utils/constants.js';
import {logDebug} from './utils/log.js';
import {getPref, initPrefs, prefs, uninitPrefs} from './utils/settings.js';
import {WindowPicker} from './window_picker/service.js';

// types, which will be removed in output
import type Gio from 'gi://Gio';
Expand Down
2 changes: 1 addition & 1 deletion src/preferences/widgets/app_row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk';

import {gettext as _} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
import {onPicked, pick} from '../window_picker/client.js';
import {onPicked, pick} from '../../window_picker/client.js';

export class AppRowClass extends Adw.ExpanderRow {
private callbacks?: AppRowCallbacks;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import Meta from 'gi://Meta';
import {Inspector} from 'resource:///org/gnome/shell/ui/lookingGlass.js';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';

import {readRelativeFile} from '../../utils/file.js';
import {logDebug} from '../../utils/log.js';
import {readRelativeFile} from '../utils/file.js';
import {logDebug} from '../utils/log.js';

/**
* This class provides the implementation of the DBus interface for the window
Expand Down

0 comments on commit f2fbebf

Please sign in to comment.