mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
respect animation config setting
This commit is contained in:
@@ -61,7 +61,7 @@ function enable() {
|
||||
|
||||
panelConnectId = panel.actor.connect('allocate', allocate);
|
||||
container.remove_child(appMenu.container);
|
||||
taskbar = new Taskbar.taskbar();
|
||||
taskbar = new Taskbar.taskbar(settings);
|
||||
Main.overview.dashIconSize = taskbar.iconSize;
|
||||
|
||||
container.insert_child_at_index( taskbar.actor, 2 );
|
||||
|
||||
@@ -222,7 +222,8 @@ const baseIconSizes = [ 16, 22, 24, 32, 48, 64, 96, 128 ];
|
||||
const taskbar = new Lang.Class({
|
||||
Name: 'taskbar.taskbar',
|
||||
|
||||
_init : function() {
|
||||
_init : function(settings) {
|
||||
this._dtpSettings = settings;
|
||||
this._maxHeight = -1;
|
||||
this.iconSize = 32;
|
||||
this._availableIconSizes = baseIconSizes;
|
||||
@@ -1011,7 +1012,7 @@ const taskbar = new Lang.Class({
|
||||
// status (due to the _syncShowAppsButtonToggled function below) and it
|
||||
// has already performed the desired action.
|
||||
|
||||
let animate = true;
|
||||
let animate = this._dtpSettings.get_boolean('animate-show-apps');
|
||||
let selector = Main.overview.viewSelector;
|
||||
|
||||
if (selector._showAppsButton.checked !== this.showAppsButton.checked) {
|
||||
|
||||
Reference in New Issue
Block a user