mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Save WebUI Statistics window size
This commit is contained in:
parent
1a9b009951
commit
c47e4efade
1 changed files with 7 additions and 3 deletions
|
@ -236,15 +236,19 @@ initializeWindows = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
StatisticsLinkFN = function() {
|
StatisticsLinkFN = function() {
|
||||||
|
var id = 'statisticspage';
|
||||||
new MochaUI.Window({
|
new MochaUI.Window({
|
||||||
id: 'statisticspage',
|
id: id,
|
||||||
title: 'QBT_TR(Statistics)QBT_TR[CONTEXT=StatsDialog]',
|
title: 'QBT_TR(Statistics)QBT_TR[CONTEXT=StatsDialog]',
|
||||||
loadMethod: 'xhr',
|
loadMethod: 'xhr',
|
||||||
contentURL: 'statistics.html',
|
contentURL: 'statistics.html',
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 275,
|
|
||||||
height: 370,
|
|
||||||
padding: 10
|
padding: 10
|
||||||
|
width: loadWindowWidth(id, 275),
|
||||||
|
height: loadWindowHeight(id, 370),
|
||||||
|
onResize: function() {
|
||||||
|
saveWindowSize(id);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue