2018-05-25 プライバシーポリシーを改訂いたしました。

コミットメタ情報

リビジョン2c39d4b733f5950d29486f06498a5e32041a8a77 (tree)
日時2018-01-27 20:47:40
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

通知方法の詳細設定がズームしないのを直す

変更サマリ

差分

--- a/KancolleSniffer/ConfigDialog.cs
+++ b/KancolleSniffer/ConfigDialog.cs
@@ -25,7 +25,6 @@ namespace KancolleSniffer
2525 {
2626 private readonly Config _config;
2727 private readonly MainForm _main;
28- private readonly NotificationConfigDialog _notificationConfigDialog;
2928
3029 private readonly Dictionary<string, NotificationSpec> _notificationSettings =
3130 new Dictionary<string, NotificationSpec>();
@@ -35,6 +34,7 @@ namespace KancolleSniffer
3534 private Point _prevPosition = new Point(int.MinValue, int.MinValue);
3635
3736 public List<string> RepeatSettingsChanged { get; } = new List<string>();
37+ public NotificationConfigDialog NotificationConfigDialog { get; }
3838
3939 public ConfigDialog(Config config, MainForm main)
4040 {
@@ -45,7 +45,7 @@ namespace KancolleSniffer
4545 listBoxSoundFile.Items.AddRange(Config.NotificationNames);
4646 numericUpDownMaterialLogInterval.Maximum = 1440;
4747
48- _notificationConfigDialog = new NotificationConfigDialog(_notificationSettings,
48+ NotificationConfigDialog = new NotificationConfigDialog(_notificationSettings,
4949 new Dictionary<NotificationType, CheckBox>
5050 {
5151 {NotificationType.FlashWindow, checkBoxFlash},
@@ -342,7 +342,7 @@ namespace KancolleSniffer
342342
343343 private void buttonDetailedSettings_Click(object sender, EventArgs e)
344344 {
345- _notificationConfigDialog.ShowDialog(this);
345+ NotificationConfigDialog.ShowDialog(this);
346346 }
347347
348348 private void ConfigDialog_FormClosing(object sender, FormClosingEventArgs e)
--- a/KancolleSniffer/MainForm.cs
+++ b/KancolleSniffer/MainForm.cs
@@ -354,7 +354,8 @@ namespace KancolleSniffer
354354 foreach (var control in new Control[]
355355 {
356356 this, _listForm, labelLogin, linkLabelGuide,
357- _configDialog, contextMenuStripMain, _errorDialog
357+ _configDialog, _configDialog.NotificationConfigDialog,
358+ contextMenuStripMain, _errorDialog
358359 })
359360 {
360361 control.Font = new Font(control.Font.FontFamily, control.Font.Size * _config.Zoom / 100);
旧リポジトリブラウザで表示